|
Public Types |
| enum | ContactEvent { , Separation = 0x1,
Contact = 0x2,
Motion = 0x4,
All = Separation|Contact|Motion
} |
| | Indicates which type of event that has occured. More...
|
Public Member Functions |
|
| ContactState () |
| | Base constructor.
|
|
| ContactState (const ContactState &o) |
| | Copy constructor.
|
|
ContactState & | operator= (const ContactState &o) |
| | Copy operator.
|
|
virtual | ~ContactState () |
| | Destructor.
|
|
void | clear () |
| | Resets the state to its default values.
|
|
void | set (ContactEvent event, Shape *shape, HapticDevice *, double time) |
| | Sets the state of the collision event this method is called by the collision manager.
|
|
void | set (ContactEvent event, Shape *shape, HapticDevice *, const osg::Vec3 &pos, const osg::Vec3 &normal, double time) |
| | Sets the state of the collision event this method is called by the collision manager.
|
|
Shape * | getShape () |
| | Return one of the objects involved in the collision.
|
| osg::Vec3 | getContactPosition () const |
| osg::Vec3 | getContactNormal () const |
| osg::Vec3 | getVelocity () const |
|
double | getTime () const |
| | Return time of event (in simulation time).
|
|
ContactEvent | getEvent () const |
| | Return the type of the event that has occured.
|