Torque3D Documentation / _generateds / GjkCollisionState

GjkCollisionState

Engine/source/collision/gjk.h

More...

Temporary values

mP [4]

support points of object A in local coordinates

mQ [4]

support points of object B in local coordinates

mY [4]

support points of A - B in world coordinates

identifies current simplex

all_bits = bits | last_bit

mDet [16][4]

cached sub-determinants

mDP [4][4]

cached dot products

identifies last found support point

last_bit = 1<

Detailed Description

Temporary values

Point3F mP [4]

support points of object A in local coordinates

Point3F mQ [4]

support points of object B in local coordinates

VectorF mY [4]

support points of A - B in world coordinates

S32 mBits 

identifies current simplex

S32 mAll_bits 

all_bits = bits | last_bit

F32 mDet [16][4]

cached sub-determinants

F32 mDP [4][4]

cached dot products

S32 mLast 

identifies last found support point

S32 mLast_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)