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