API Docs for: 1.0.0
Show:

b2PolyShape Class

A convex polygon

The position of the polygon (m_position) is the position of the centroid. The vertices of the incoming polygon are pre-rotated according to the local rotation. The vertices are also shifted to be centered on the centroid. Since the local rotation is absorbed into the vertex coordinates, the polygon rotation is equal to the body rotation. However, the polygon position is centered on the polygon centroid. This simplifies some collision algorithms.

Constructor

Item Index