20 #ifndef B2_EDGE_SHAPE_H
21 #define B2_EDGE_SHAPE_H
23 #include <Box2D/Collision/Shapes/b2Shape.h>
50 const b2Transform& transform, int32 childIndex)
const;
58 #if LIQUIDFUN_EXTERNAL_LANGUAGE_API
61 void Set(float32 vx1, float32 vy1, float32 vx2, float32 vy2);
62 #endif // LIQUIDFUN_EXTERNAL_LANGUAGE_API
69 bool m_hasVertex0, m_hasVertex3;
72 inline b2EdgeShape::b2EdgeShape()
84 #if LIQUIDFUN_EXTERNAL_LANGUAGE_API
91 #endif // LIQUIDFUN_EXTERNAL_LANGUAGE_API
bool TestPoint(const b2Transform &transform, const b2Vec2 &p) const
Definition: b2EdgeShape.cpp:44
int32 GetChildCount() const
Definition: b2EdgeShape.cpp:39
Definition: b2BlockAllocator.h:36
This holds the mass data computed for a shape.
Definition: b2Shape.h:28
b2Vec2 m_vertex0
Optional adjacent vertices. These are used for smooth collision.
Definition: b2EdgeShape.h:68
Definition: b2Collision.h:155
bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const
Implement b2Shape.
Definition: b2EdgeShape.cpp:84
b2Shape * Clone(b2BlockAllocator *allocator) const
Implement b2Shape.
Definition: b2EdgeShape.cpp:31
#define b2_polygonRadius
Definition: b2Settings.h:120
An axis aligned bounding box.
Definition: b2Collision.h:162
Definition: b2EdgeShape.h:28
void ComputeAABB(b2AABB *aabb, const b2Transform &transform, int32 childIndex) const
Definition: b2EdgeShape.cpp:146
void ComputeDistance(const b2Transform &xf, const b2Vec2 &p, float32 *distance, b2Vec2 *normal, int32 childIndex) const
Definition: b2EdgeShape.cpp:51
b2Vec2 m_vertex1
These are the edge vertices.
Definition: b2EdgeShape.h:65
void Set(const b2Vec2 &v1, const b2Vec2 &v2)
Set this as an isolated edge.
Definition: b2EdgeShape.cpp:23
A 2D column vector.
Definition: b2Math.h:56
void ComputeMass(b2MassData *massData, float32 density) const
Definition: b2EdgeShape.cpp:161