 |
Box2D
2.4.1
A 2D physics engine for games
|
22 #ifndef B2_POLYGON_SHAPE_H
23 #define B2_POLYGON_SHAPE_H
69 const b2Transform& transform, int32 childIndex)
const override;
87 inline b2PolygonShape::b2PolygonShape()
A 2D column vector.
Definition: b2_math.h:42
void SetAsBox(float hx, float hy)
void Set(const b2Vec2 *points, int32 count)
float m_radius
Definition: b2_shape.h:102
b2Shape * Clone(b2BlockAllocator *allocator) const override
Implement b2Shape.
bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const override
void SetAsBox(float hx, float hy, const b2Vec2 ¢er, float angle)
An axis aligned bounding box.
Definition: b2_collision.h:169
Definition: b2_block_allocator.h:38
bool TestPoint(const b2Transform &transform, const b2Vec2 &p) const override
Definition: b2_polygon_shape.h:33
#define b2_polygonRadius
Definition: b2_common.h:74
Definition: b2_shape.h:49
This holds the mass data computed for a shape.
Definition: b2_shape.h:34
void SetZero()
Set this vector to all zeros.
Definition: b2_math.h:50
void ComputeMass(b2MassData *massData, float density) const override
void ComputeAABB(b2AABB *aabb, const b2Transform &transform, int32 childIndex) const override
Definition: b2_collision.h:162
int32 GetChildCount() const override
#define b2_maxPolygonVertices
Definition: b2_settings.h:53