Public Member Functions | |
Dummy3DPhy (C3DPhy *pV) | |
Duplicates and keeps track of a 3DPhy. | |
virtual void | step (dReal) |
Steps the 3D-Phy. Default is to do nothing but decreasing the TTL and call the onTTLZero() method if necessary. | |
virtual bool | hitBefore (Physics::Contact *pContacts, unsigned int nbContacts, Physics::Contact *pMaxEnergyContact, Physics::Geom &thisGeom, Physics::Geom &otherGeom, Physics::Body *&inout_pThisBody, Physics::Body *&inout_pOtherBody) |
Creates a contact joint only if the hit geom is not the initial 3DPhy. | |
Protected Attributes | |
const C3DPhy * | pInit3DPhy |
Used for perforant ammunition: does the collision with the world, whereas the 'original' ammunition goes through the perfored geom.
Definition at line 39 of file Ammo.cpp.
Dummy3DPhy::Dummy3DPhy | ( | C3DPhy * | pV | ) | [inline] |
virtual bool Dummy3DPhy::hitBefore | ( | Physics::Contact * | pContacts, | |
unsigned int | nbContacts, | |||
Physics::Contact * | pMaxEnergyContact, | |||
Physics::Geom & | thisGeom, | |||
Physics::Geom & | otherGeom, | |||
Physics::Body *& | inout_pThisBody, | |||
Physics::Body *& | inout_pOtherBody | |||
) | [inline, virtual] |
Creates a contact joint only if the hit geom is not the initial 3DPhy.
Reimplemented from C3DPhy.
Definition at line 46 of file Ammo.cpp.
References IGeomCollisionContainer::as3DPhy(), Physics::Geom::getCollisionContainer(), and pInit3DPhy.
virtual void Dummy3DPhy::step | ( | dReal | stepSize | ) | [inline, virtual] |
Steps the 3D-Phy. Default is to do nothing but decreasing the TTL and call the onTTLZero() method if necessary.
Reimplemented from C3DPhy.
Definition at line 43 of file Ammo.cpp.
References C3DPhy::onTTLZero().
const C3DPhy* Dummy3DPhy::pInit3DPhy [protected] |