Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OPC_TreeCollider.cpp File Reference
#include "Stdafx.h"
#include "OPC_BoxBoxOverlap.h"
#include "OPC_TriBoxOverlap.h"
#include "OPC_TriTriOverlap.h"

Go to the source code of this file.

Macros

#define UPDATE_CACHE
 
#define ALTERNATIVE_CODE
 Alternative descent rules. More...
 
#define FETCH_LEAF(prim_index, imesh, rot, trans)
 Request triangle vertices from the app and transform them. More...
 

Detailed Description

Contains code for a tree collider.

Author
Pierre Terdiman
Date
March, 20, 2001

Definition in file OPC_TreeCollider.cpp.

Macro Definition Documentation

#define ALTERNATIVE_CODE

Alternative descent rules.

Definition at line 438 of file OPC_TreeCollider.cpp.

#define FETCH_LEAF (   prim_index,
  imesh,
  rot,
  trans 
)
Value:
mLeafIndex = prim_index; \
/* Request vertices from the app */ \
VertexPointers VP; imesh->GetTriangle(VP, prim_index); \
/* Transform them in a common space */ \
TransformPoint(mLeafVerts[0], *VP.Vertex[0], rot, trans); \
TransformPoint(mLeafVerts[1], *VP.Vertex[1], rot, trans); \
TransformPoint(mLeafVerts[2], *VP.Vertex[2], rot, trans);

Request triangle vertices from the app and transform them.

Definition at line 642 of file OPC_TreeCollider.cpp.

#define UPDATE_CACHE
Value:
if(cache && GetContactStatus()) \
{ \
cache->id0 = mPairs.GetEntry(0); \
cache->id1 = mPairs.GetEntry(1); \
}

Definition at line 292 of file OPC_TreeCollider.cpp.