|
void | SetOneSided (const b2Vec2 &v0, const b2Vec2 &v1, const b2Vec2 &v2, const b2Vec2 &v3) |
|
void | SetTwoSided (const b2Vec2 &v1, const b2Vec2 &v2) |
| Set this as an isolated edge. Collision is two-sided.
|
|
b2Shape * | Clone (b2BlockAllocator *allocator) const override |
| Implement b2Shape. More...
|
|
int32 | GetChildCount () const override |
|
bool | TestPoint (const b2Transform &transform, const b2Vec2 &p) const override |
|
bool | RayCast (b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const override |
| Implement b2Shape. More...
|
|
void | ComputeAABB (b2AABB *aabb, const b2Transform &transform, int32 childIndex) const override |
|
void | ComputeMass (b2MassData *massData, float density) const override |
|
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 line segment (edge) shape. These can be connected in chains or loops to other edge shapes. Edges created independently are two-sided and do no provide smooth movement across junctions.