19 #ifndef B2_CHAIN_SHAPE_H 20 #define B2_CHAIN_SHAPE_H
b2Vec2 * m_vertices
The vertices. Owned by this class.
b2Shape * Clone(b2BlockAllocator *allocator) const
Implement b2Shape. Vertices are cloned using b2Alloc.
bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const
Implement b2Shape.
GLenum GLenum GLenum input
~b2ChainShape()
The destructor frees the vertices using b2Free.
void SetPrevVertex(const b2Vec2 &prevVertex)
GLuint GLenum GLenum transform
void SetNextVertex(const b2Vec2 &nextVertex)
void ComputeMass(b2MassData *massData, float32 density) const
void Clear()
Clear all data.
void ComputeAABB(b2AABB *aabb, const b2Transform &transform, int32 childIndex) const
void CreateLoop(const b2Vec2 *vertices, int32 count)
void GetChildEdge(b2EdgeShape *edge, int32 index) const
Get a child edge.
An axis aligned bounding box.
GLuint GLuint GLsizei count
int32 m_count
The vertex count.
void CreateChain(const b2Vec2 *vertices, int32 count)
This holds the mass data computed for a shape.
int32 GetChildCount() const
bool TestPoint(const b2Transform &transform, const b2Vec2 &p) const