23 #ifndef B2_EDGE_SHAPE_H 24 #define B2_EDGE_SHAPE_H
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.
bool m_oneSided
Uses m_vertex0 and m_vertex3 to create smooth collision.
virtual void ComputeAABB(b2AABB *aabb, const b2Transform &xf, int32 childIndex) const =0
This holds the mass data computed for a shape.