19 #ifndef B2_POLYGON_SHAPE_H 20 #define B2_POLYGON_SHAPE_H
int32 GetChildCount() const
GLenum GLenum GLenum input
bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const
Implement b2Shape.
void SetZero()
Set this vector to all zeros.
GLuint GLenum GLenum transform
GLuint GLenum GLsizei GLsizei GLboolean void * points
void ComputeMass(b2MassData *massData, float32 density) const
b2Shape * Clone(b2BlockAllocator *allocator) const
Implement b2Shape.
bool TestPoint(const b2Transform &transform, const b2Vec2 &p) const
b2Vec2 m_vertices[b2_maxPolygonVertices]
int32 GetVertexCount() const
Get the vertex count.
#define b2_maxPolygonVertices
void SetAsBox(float32 hx, float32 hy)
An axis aligned bounding box.
void Set(const b2Vec2 *points, int32 count)
void ComputeAABB(b2AABB *aabb, const b2Transform &transform, int32 childIndex) const
const b2Vec2 & GetVertex(int32 index) const
Get a vertex by index.
GLuint GLuint GLsizei count
This holds the mass data computed for a shape.
b2Vec2 m_normals[b2_maxPolygonVertices]