Physics::Contact Class Reference

Represents data of a contact between two geoms (special joint data). More...

#include <Contact.h>

List of all members.

Public Member Functions

osg::Vec3 getPos () const
osg::Vec3 getNormal () const
dReal getDepth () const
GeomgetGeom1 () const
GeomgetGeom2 () const
osg::Vec3 getFrictionDir () const
SurfaceParamsgetSurfaceParams ()
const SurfaceParamsgetSurfaceParams () const

Public Attributes

dReal arithmeticCineticEnergy
 Arithmetic value of cinetic (collision) energy, in Joules. If this value is negative, that mean geoms' velocities are opposite (means the contact should be not here next step). Can be zero or nearly zero for energy beams for example, even if the beam is charged with a lot of radiant energy.

Friends

class Geom
class Joint
class NearCallback


Detailed Description

Represents data of a contact between two geoms (special joint data).

This class adds a cinetic energy value (comparing to ODE). Dev note : if confusing, this class can be renamed ContactData.

Definition at line 43 of file Contact.h.


Member Function Documentation

dReal Physics::Contact::getDepth (  )  const [inline]

Definition at line 51 of file Contact.h.

osg::Vec3 Physics::Contact::getFrictionDir (  )  const [inline]

Definition at line 55 of file Contact.h.

References Physics::toGraphVec3().

Geom* Physics::Contact::getGeom1 (  )  const [inline]

Definition at line 52 of file Contact.h.

Geom* Physics::Contact::getGeom2 (  )  const [inline]

Definition at line 53 of file Contact.h.

osg::Vec3 Physics::Contact::getNormal (  )  const [inline]

Definition at line 50 of file Contact.h.

References Physics::toGraphVec3().

Referenced by Physics::NearCallback::operator()().

osg::Vec3 Physics::Contact::getPos (  )  const [inline]

const SurfaceParams& Physics::Contact::getSurfaceParams (  )  const [inline]

Definition at line 57 of file Contact.h.

References Physics::SurfaceParams::asSurfaceParams().

SurfaceParams& Physics::Contact::getSurfaceParams (  )  [inline]

Definition at line 56 of file Contact.h.

References Physics::SurfaceParams::asSurfaceParams().

Referenced by Physics::NearCallback::operator()().


Friends And Related Function Documentation

friend class Geom [friend]

Definition at line 44 of file Contact.h.

friend class Joint [friend]

Definition at line 45 of file Contact.h.

friend class NearCallback [friend]

Definition at line 46 of file Contact.h.


Member Data Documentation

Arithmetic value of cinetic (collision) energy, in Joules. If this value is negative, that mean geoms' velocities are opposite (means the contact should be not here next step). Can be zero or nearly zero for energy beams for example, even if the beam is charged with a lot of radiant energy.

Definition at line 60 of file Contact.h.

Referenced by C3DPhy::hitAfter(), Ammo::hitBefore(), and Physics::NearCallback::operator()().


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

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