#include <icollision.h>
Public Member Functions |
|
CollisionMesh () | |
~CollisionMesh () | |
int | SuppportedCollisions () |
void | PreFrame (TimeValue t, TimeValue dt) |
void | PostFrame (TimeValue t, TimeValue dt) |
BOOL | CheckCollision (TimeValue t, Point3 pos, Point3 vel, float dt, float &at, Point3 &hitPoint, Point3 &norm, Point3 &friction, Point3 &inheritedVel) |
BOOL | CheckCollision (TimeValue t, Point3 pos, float radius, Point3 vel, float dt, float &at, Point3 &hitPoint, Point3 &norm, Point3 &friction, Point3 &inheritedVel) |
BOOL | CheckCollision (TimeValue t, Box3 box, Point3 vel, float dt, float &at, Point3 &hitPoint, Point3 &norm, Point3 &friction, Point3 &inheritedVel) |
BOOL | CheckCollision (TimeValue t, Point3 edgeA, Point3 edgeB, Point3 vel, float dt, float &at, Point3 &hitPoint, Point3 &norm, Point3 &friction, Point3 &inheritedVel) |
void | SetNode (TimeValue t, INode *n) |
void | DeleteThis () |
Class_ID | ClassID () |
SClass_ID | SuperClassID () |
int | NumRefs () |
RefTargetHandle | GetReference (int i) |
RefTargetHandle | Clone (RemapDir &remap) |
RefResult | NotifyRefChanged (Interval changeInt, RefTargetHandle hTarget, PartID &partID, RefMessage message) |
Public Attributes |
|
IParamBlock2 * | pblock |
Interval | validity |
DWORD | outFi |
Point3 | outBary |
Matrix3 | tm |
Matrix3 | invtm |
Matrix3 | tmPrev |
Matrix3 | invtmPrev |
Mesh * | dmesh |
int | nv |
int | nf |
CollisionVNormal * | vnorms |
Point3 * | fnorms |
Protected Member Functions |
|
virtual void | SetReference (int i, RefTargetHandle rtarg) |
CollisionMesh | ( | ) |
~CollisionMesh | ( | ) |
int SuppportedCollisions | ( | ) | [inline, virtual] |
Implements ICollision.
{
return POINT_COLLISION;
}
void PreFrame | ( | TimeValue | t, |
TimeValue | dt | ||
) | [virtual] |
Implements ICollision.
void PostFrame | ( | TimeValue | t, |
TimeValue | dt | ||
) | [inline, virtual] |
Implements ICollision.
{}
BOOL CheckCollision | ( | TimeValue | t, |
Point3 | pos, | ||
Point3 | vel, | ||
float | dt, | ||
float & | at, | ||
Point3 & | hitPoint, | ||
Point3 & | norm, | ||
Point3 & | friction, | ||
Point3 & | inheritedVel | ||
) | [virtual] |
Implements ICollision.
BOOL CheckCollision | ( | TimeValue | t, |
Point3 | pos, | ||
float | radius, | ||
Point3 | vel, | ||
float | dt, | ||
float & | at, | ||
Point3 & | hitPoint, | ||
Point3 & | norm, | ||
Point3 & | friction, | ||
Point3 & | inheritedVel | ||
) | [inline, virtual] |
Implements ICollision.
{
return FALSE;
}
BOOL CheckCollision | ( | TimeValue | t, |
Box3 | box, | ||
Point3 | vel, | ||
float | dt, | ||
float & | at, | ||
Point3 & | hitPoint, | ||
Point3 & | norm, | ||
Point3 & | friction, | ||
Point3 & | inheritedVel | ||
) | [inline, virtual] |
Implements ICollision.
{
return FALSE;
}
BOOL CheckCollision | ( | TimeValue | t, |
Point3 | edgeA, | ||
Point3 | edgeB, | ||
Point3 | vel, | ||
float | dt, | ||
float & | at, | ||
Point3 & | hitPoint, | ||
Point3 & | norm, | ||
Point3 & | friction, | ||
Point3 & | inheritedVel | ||
) | [inline, virtual] |
Implements ICollision.
{
return FALSE;
}
void SetNode | ( | TimeValue | t, |
INode * | n | ||
) | [inline] |
void DeleteThis | ( | ) | [virtual] |
Class_ID ClassID | ( | ) | [inline, virtual] |
Reimplemented from Animatable.
{return MESH_COLLISION_ID;}
SClass_ID SuperClassID | ( | ) | [inline, virtual] |
Reimplemented from ReferenceTarget.
{return REF_MAKER_CLASS_ID;}
int NumRefs | ( | ) | [inline, virtual] |
Reimplemented from ReferenceMaker.
{ return 1; }
RefTargetHandle GetReference | ( | int | i | ) | [inline, virtual] |
Reimplemented from ReferenceMaker.
{ return pblock; }
virtual void SetReference | ( | int | i, |
RefTargetHandle | rtarg | ||
) | [inline, protected, virtual] |
Reimplemented from ReferenceMaker.
{pblock = (IParamBlock2*)rtarg;}
RefTargetHandle Clone | ( | RemapDir & | remap | ) | [virtual] |
Reimplemented from ReferenceTarget.
RefResult NotifyRefChanged | ( | Interval | changeInt, |
RefTargetHandle | hTarget, | ||
PartID & | partID, | ||
RefMessage | message | ||
) | [inline, virtual] |
Implements ReferenceMaker.
{ switch (message) { case REFMSG_CHANGE: if (hTarget == pblock) validity.SetEmpty(); break; } //note this is ref_stop because we don't want the engine updating it references //may need a flag to turn this off or on return( REF_STOP); }