Go to the source code of this file.
Defines | |
#define | SET_CONTACT(prim_index, flag) |
#define | SPHERE_PRIM(prim_index, flag) |
Sphere-triangle overlap test. | |
#define | TEST_BOX_IN_SPHERE(center, extents) |
#define SET_CONTACT | ( | prim_index, | |
flag | |||
) |
/* Set contact status */ \ mFlags |= flag; \ mTouchedPrimitives->Add(prim_index);
Definition at line 42 of file OPC_SphereCollider.cpp.
#define SPHERE_PRIM | ( | prim_index, | |
flag | |||
) |
/* Request vertices from the app */ \ VertexPointers VP; mIMesh->GetTriangle(VP, prim_index); \ \ /* Perform sphere-tri overlap test */ \ if(SphereTriOverlap(*VP.Vertex[0], *VP.Vertex[1], *VP.Vertex[2])) \ { \ SET_CONTACT(prim_index, flag) \ }
Sphere-triangle overlap test.
Definition at line 48 of file OPC_SphereCollider.cpp.
#define TEST_BOX_IN_SPHERE | ( | center, | |
extents | |||
) |
if(SphereContainsBox(center, extents)) \ { \ /* Set contact status */ \ mFlags |= OPC_CONTACT; \ _Dump(node); \ return; \ }
Definition at line 328 of file OPC_SphereCollider.cpp.