Contact Class Reference

Contact class. More...

Public Attributes

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

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 161 of file world.h.

Member Data Documentation

PhyObject* collide

Collide Object.

Definition at line 166 of file world.h.

wVector force

the normal restitution force at the contact point

Definition at line 172 of file world.h.

PhyObject* object

Reference Object.

Definition at line 164 of file world.h.

wVector pos

position of the contact in the local object coordinates

Definition at line 168 of file world.h.

wVector worldPos

position in the global coordinate

Definition at line 170 of file world.h.


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