23 #ifndef B2_CHAIN_SHAPE_H 24 #define B2_CHAIN_SHAPE_H 50 void CreateLoop(
const b2Vec2* vertices,
int32 count);
57 void CreateChain(
const b2Vec2* vertices,
int32 count,
b2Vec2 * m_vertices
The vertices. Owned by this class.
virtual b2Shape * Clone(b2BlockAllocator *allocator) const =0
Clone the concrete shape using the provided allocator.
virtual bool TestPoint(const b2Transform &xf, const b2Vec2 &p) const =0
virtual int32 GetChildCount() const =0
Get the number of child primitives.
virtual void ComputeMass(b2MassData *massData, float density) const =0
virtual bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const =0
An axis aligned bounding box.
int32 m_count
The vertex count.
virtual void ComputeAABB(b2AABB *aabb, const b2Transform &xf, int32 childIndex) const =0
This holds the mass data computed for a shape.