#include <Contact.h>
Public Member Functions | |
osg::Vec3 | getPos () const |
osg::Vec3 | getNormal () const |
dReal | getDepth () const |
Geom * | getGeom1 () const |
Geom * | getGeom2 () const |
osg::Vec3 | getFrictionDir () const |
SurfaceParams & | getSurfaceParams () |
const SurfaceParams & | getSurfaceParams () 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 |
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.
osg::Vec3 Physics::Contact::getFrictionDir | ( | ) | const [inline] |
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] |
Definition at line 49 of file Contact.h.
References Physics::toGraphVec3().
Referenced by Ammo::hitAfter(), C3DPhy::hitAfter(), Explosion::hitBefore(), and Physics::NearCallback::operator()().
const SurfaceParams& Physics::Contact::getSurfaceParams | ( | ) | const [inline] |
SurfaceParams& Physics::Contact::getSurfaceParams | ( | ) | [inline] |
Definition at line 56 of file Contact.h.
References Physics::SurfaceParams::asSurfaceParams().
Referenced by Physics::NearCallback::operator()().
friend class NearCallback [friend] |
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()().