B2PolygonShape

From Box2D Wiki

b2PolygonShape
Box2D/Collision/Shapes
Visibility Public
Definition Object b2PolygonDef
Parent Object b2Shape
Manual reference [1]
API reference [2]
Source reference H.png Cpp.png

b2PolygonShape represents a concave polygon shape. The vertices must be specified in counter-clockwise order about the z-axis of a right-handed coordinate system, and you must ensure the shape is not so slim it cannot support a core shape. The maximum number of vertices is fixed by setting b2_maxPolyVertices.


TOOLBOX
LANGUAGES