23 #include <Box2D/Common/b2BlockAllocator.h>
24 #include <Box2D/Common/b2Math.h>
86 const b2Transform& transform, int32 childIndex)
const = 0;
Type GetType() const
Definition: b2Shape.h:104
float32 I
The rotational inertia of the shape about the local origin.
Definition: b2Shape.h:37
Definition: b2BlockAllocator.h:36
virtual int32 GetChildCount() const =0
Get the number of child primitives.
This holds the mass data computed for a shape.
Definition: b2Shape.h:28
Definition: b2Collision.h:155
virtual void ComputeAABB(b2AABB *aabb, const b2Transform &xf, int32 childIndex) const =0
An axis aligned bounding box.
Definition: b2Collision.h:162
float32 mass
The mass of the shape, usually in kilograms.
Definition: b2Shape.h:31
b2Vec2 center
The position of the shape's centroid relative to the shape's origin.
Definition: b2Shape.h:34
virtual bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const =0
virtual b2Shape * Clone(b2BlockAllocator *allocator) const =0
Clone the concrete shape using the provided allocator.
virtual void ComputeMass(b2MassData *massData, float32 density) const =0
A 2D column vector.
Definition: b2Math.h:56
virtual void ComputeDistance(const b2Transform &xf, const b2Vec2 &p, float32 *distance, b2Vec2 *normal, int32 childIndex) const =0
virtual bool TestPoint(const b2Transform &xf, const b2Vec2 &p) const =0