
Public Member Functions | |
| void | SetAsBox (float32 hx, float32 hy) |
| Build vertices to represent an axis-aligned box. | |
| void | SetAsBox (float32 hx, float32 hy, const b2Vec2 ¢er, float32 angle) |
| Build vertices to represent an oriented box. | |
Public Attributes | |
| b2Vec2 | vertices [b2_maxPolygonVertices] |
| The polygon vertices in local coordinates. | |
| int32 | vertexCount |
| The number of polygon vertices. | |
The vertices must be in CCW order for a right-handed coordinate system with the z-axis coming out of the screen.
| void b2PolygonDef::SetAsBox | ( | float32 | hx, | |
| float32 | hy | |||
| ) |
Build vertices to represent an axis-aligned box.
| hx | the half-width. | |
| hy | the half-height. |
| void b2PolygonDef::SetAsBox | ( | float32 | hx, | |
| float32 | hy, | |||
| const b2Vec2 & | center, | |||
| float32 | angle | |||
| ) |
Build vertices to represent an oriented box.
| hx | the half-width. | |
| hy | the half-height. | |
| center | the center of the box in local coordinates. | |
| angle | the rotation of the box in local coordinates. |
1.5.4