Go to the source code of this file.
Defines | |
#define | PLANES_PRIM(prim_index, flag) |
Planes-triangle test. | |
#define | SET_CONTACT(prim_index, flag) |
#define | TEST_CLIP_MASK |
Contains code for a planes collider.
Definition in file OPC_PlanesCollider.cpp.
#define PLANES_PRIM | ( | prim_index, | |
flag | |||
) |
/* Request vertices from the app */ \ mIMesh->GetTriangle(mVP, prim_index); \ /* Perform triangle-box overlap test */ \ if(PlanesTriOverlap(clip_mask)) \ { \ SET_CONTACT(prim_index, flag) \ }
Planes-triangle test.
Definition at line 44 of file OPC_PlanesCollider.cpp.
#define SET_CONTACT | ( | prim_index, | |
flag | |||
) |
/* Set contact status */ \ mFlags |= flag; \ mTouchedPrimitives->Add(prim_index);
Definition at line 38 of file OPC_PlanesCollider.cpp.
#define TEST_CLIP_MASK |
/* If the box is completely included, so are its children. We don't need to do extra tests, we */ \ /* can immediately output a list of visible children. Those ones won't need to be clipped. */ \ if(!OutClipMask) \ { \ /* Set contact status */ \ mFlags |= OPC_CONTACT; \ _Dump(node); \ return; \ }
Definition at line 260 of file OPC_PlanesCollider.cpp.