|
| b2Shape * | Clone (b2BlockAllocator *allocator) const override |
| | Implement b2Shape. More...
|
| |
| int32 | GetChildCount () const override |
| |
| void | Set (const b2Vec2 *points, int32 count) |
| |
| void | SetAsBox (float hx, float hy) |
| |
| void | SetAsBox (float hx, float hy, const b2Vec2 ¢er, float angle) |
| |
| bool | TestPoint (const b2Transform &transform, const b2Vec2 &p) const override |
| |
| bool | RayCast (b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const override |
| |
| void | ComputeAABB (b2AABB *aabb, const b2Transform &transform, int32 childIndex) const override |
| |
| void | ComputeMass (b2MassData *massData, float density) const override |
| |
| bool | Validate () const |
| |
| virtual b2Shape * | Clone (b2BlockAllocator *allocator) const =0 |
| | Clone the concrete shape using the provided allocator. More...
|
| |
| Type | GetType () const |
| |
| virtual int32 | GetChildCount () const =0 |
| | Get the number of child primitives. More...
|
| |
| virtual bool | TestPoint (const b2Transform &xf, const b2Vec2 &p) const =0 |
| |
| virtual bool | RayCast (b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const =0 |
| |
| virtual void | ComputeAABB (b2AABB *aabb, const b2Transform &xf, int32 childIndex) const =0 |
| |
| virtual void | ComputeMass (b2MassData *massData, float density) const =0 |
| |
A solid convex polygon. It is assumed that the interior of the polygon is to the left of each edge. Polygons have a maximum number of vertices equal to b2_maxPolygonVertices. In most cases you should not need many vertices for a convex polygon.