Skip to content

Box2D_Constants

hugh greene edited this page Jun 20, 2022 · 1 revision

This article is an overview of physics related constants and variables for the Box2D physics extension.

Shape Constants

Constant Description
b2d_box Box shape with width and height.
b2d_circle Circle shape defined by radius.
b2d_edge Edge shape, can be combined to create chains and loops.
b2d_chain Chain shape defined by vertices and compromised of a series of edges.
b2d_loop Loop shape defined by vertices and compromised of a series of edges.
b2d_polygon Polygon shape defined by convex vertices in a clockwise order.
Clone this wiki locally