Dummy3DPhy Class Reference

A 3D-Phy without 3D representation that destroys itself after 1 step, and that is a copy of another 3D-Phy. More...

Inheritance diagram for Dummy3DPhy:

Inheritance graph
[legend]

List of all members.

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 C3DPhypInit3DPhy


Detailed Description

A 3D-Phy without 3D representation that destroys itself after 1 step, and that is a copy of another 3D-Phy.

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.


Constructor & Destructor Documentation

Dummy3DPhy::Dummy3DPhy ( C3DPhy pV  )  [inline]

Duplicates and keeps track of a 3DPhy.

Definition at line 42 of file Ammo.cpp.

References ASSERT.


Member Function Documentation

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().


Member Data Documentation

const C3DPhy* Dummy3DPhy::pInit3DPhy [protected]

Definition at line 53 of file Ammo.cpp.

Referenced by hitBefore().


The documentation for this class was generated from the following file:

Generated on Sun Jan 17 11:39:27 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9