Contact Class Reference

Contact class. More...

Public Attributes

PhyObjectcollide
 Collide Object. More...
 
wVector force
 the normal restitution force at the contact point More...
 
PhyObjectobject
 Reference Object. More...
 
wVector pos
 position of the contact in the local object coordinates More...
 
wVector worldPos
 position in the global coordinate More...
 

Detailed Description

Contact class.

Motivation
an helper class for support the implementation of contact sensors
Description
the contact is refered to one object... so there is always a duplicate informations; for example, if object A and B collide each other then two Contact object will be generated: one for registering data from the A point of view and the other respect to object B.
This simplify the contact look-up based on the object pointer.

Definition at line 162 of file world.h.

Member Data Documentation

PhyObject* collide

Collide Object.

Definition at line 167 of file world.h.

wVector force

the normal restitution force at the contact point

Definition at line 173 of file world.h.

PhyObject* object

Reference Object.

Definition at line 165 of file world.h.

wVector pos

position of the contact in the local object coordinates

Definition at line 169 of file world.h.

wVector worldPos

position in the global coordinate

Definition at line 171 of file world.h.


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