Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <CSopcodecollider.h>
Public Member Functions | |
csOPCODECollider (const std::vector< mesh_polygon > &polygons) | |
~csOPCODECollider () | |
int | GetColliderType () const |
bool | rayCollide (const Opcode::Ray &boltbeam, Vector &norm, float &distance) |
bool | Collide (csOPCODECollider &pOtherCollider, const csReversibleTransform *pThisTransform=0, const csReversibleTransform *pOtherTransform=0) |
void | SetOneHitOnly (bool fh) |
bool | GetOneHitOnly () const |
float | GetRadius () const |
Vector | getVertex (unsigned int which) const |
unsigned int | getNumVertex () const |
Static Public Member Functions | |
static csCollisionPair * | GetCollisions () |
static void | ResetCollisionPairs () |
static size_t | GetCollisionPairCount () |
Definition at line 70 of file CSopcodecollider.h.
csOPCODECollider::csOPCODECollider | ( | const std::vector< mesh_polygon > & | polygons) |
Definition at line 38 of file CSopcodecollider.cpp.
csOPCODECollider::~csOPCODECollider | ( | ) |
Definition at line 108 of file CSopcodecollider.cpp.
bool csOPCODECollider::Collide | ( | csOPCODECollider & | pOtherCollider, |
const csReversibleTransform * | pThisTransform = 0 , |
||
const csReversibleTransform * | pOtherTransform = 0 |
||
) |
Definition at line 165 of file CSopcodecollider.cpp.
References FALSE, csTransform::GetO2TTranslation(), csReversibleTransform::GetT2O(), Opcode::Matrix4x4::m, m1, csMatrix3::Row1(), csMatrix3::Row2(), csMatrix3::Row3(), csVector3::Set(), csVector3::x, csVector3::y, and csVector3::z.
Referenced by ContinuousTerrain::Collide(), and Unit::InsideCollideTree().
|
inline |
|
static |
Definition at line 243 of file CSopcodecollider.cpp.
Referenced by ContinuousTerrain::Collide(), and Unit::InsideCollideTree().
|
static |
Definition at line 238 of file CSopcodecollider.cpp.
Referenced by ContinuousTerrain::Collide(), and Unit::InsideCollideTree().
|
inline |
Definition at line 153 of file CSopcodecollider.h.
References Opcode::BaseModel::GetMeshInterface(), and Opcode::MeshInterface::GetNbVertices().
Referenced by LaunchOneParticle().
|
inline |
Definition at line 142 of file CSopcodecollider.h.
References Opcode::Collider::FirstContactEnabled().
|
inline |
Definition at line 146 of file CSopcodecollider.h.
Definition at line 256 of file CSopcodecollider.cpp.
References Vector, x, y, and z.
Referenced by LaunchOneParticle().
bool csOPCODECollider::rayCollide | ( | const Opcode::Ray & | boltbeam, |
Vector & | norm, | ||
float & | distance | ||
) |
Definition at line 132 of file CSopcodecollider.cpp.
Referenced by Unit::rayCollide().
|
static |
Definition at line 233 of file CSopcodecollider.cpp.
Referenced by Unit::InsideCollideTree().
void csOPCODECollider::SetOneHitOnly | ( | bool | fh) |
Definition at line 249 of file CSopcodecollider.cpp.