Torque2D Reference
|
#include <b2Distance.h>
Public Member Functions | |
b2DistanceProxy () | |
void | Set (const b2Shape *shape, int32 index) |
int32 | GetSupport (const b2Vec2 &d) const |
Get the supporting vertex index in the given direction. More... | |
const b2Vec2 & | GetSupportVertex (const b2Vec2 &d) const |
Get the supporting vertex in the given direction. More... | |
int32 | GetVertexCount () const |
Get the vertex count. More... | |
const b2Vec2 & | GetVertex (int32 index) const |
Get a vertex by index. Used by b2Distance. More... | |
Public Attributes | |
b2Vec2 | m_buffer [2] |
const b2Vec2 * | m_vertices |
int32 | m_count |
float32 | m_radius |
A distance proxy is used by the GJK algorithm. It encapsulates any shape.
|
inline |
|
inline |
Get the supporting vertex index in the given direction.
Get the supporting vertex in the given direction.
|
inline |
Get a vertex by index. Used by b2Distance.
|
inline |
Get the vertex count.
void Set | ( | const b2Shape * | shape, |
int32 | index | ||
) |
Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use.
b2Vec2 m_buffer[2] |
int32 m_count |
float32 m_radius |
const b2Vec2* m_vertices |