Torque3D Documentation / _generateds / GjkCollisionState

GjkCollisionState

Engine/source/collision/gjk.h

More...

Temporary values

p [4]

support points of object A in local coordinates

q [4]

support points of object B in local coordinates

y [4]

support points of A - B in world coordinates

identifies current simplex

all_bits = bits | last_bit

det [16][4]

cached sub-determinants

dp [4][4]

cached dot products

identifies last found support point

last_bit = 1<

Detailed Description

Temporary values

Point3F p [4]

support points of object A in local coordinates

Point3F q [4]

support points of object B in local coordinates

VectorF y [4]

support points of A - B in world coordinates

S32 bits 

identifies current simplex

S32 all_bits 

all_bits = bits | last_bit

F32 det [16][4]

cached sub-determinants

F32 dp [4][4]

cached dot products

S32 last 

identifies last found support point

S32 last_bit 

last_bit = 1<

Public Functions

GjkCollisionState()

~GjkCollisionState()

closest(VectorF & v)

compute_det()

compute_vector(S32 bits, VectorF & v)

degenerate(const VectorF & w)

distance(const MatrixF & a2w, const MatrixF & b2w, const F32 dontCareDist, const MatrixF * w2a, const MatrixF * _w2b)

Reimplemented from: CollisionState

getClosestPoints(Point3F & p1, Point3F & p2)

getCollisionInfo(const MatrixF & mat, Collision * info)

intersect(const MatrixF & a2w, const MatrixF & b2w)

nextBit()

reset(const MatrixF & a2w, const MatrixF & b2w)

set(Convex * a, Convex * b, const MatrixF & a2w, const MatrixF & b2w)

Reimplemented from: CollisionState

swap()

Reimplemented from: CollisionState

valid(S32 s)