palContactSensor Class Reference

#include <palSensors.h>

Inheritance diagram for palContactSensor:

palSensor

List of all members.

Public Member Functions

virtual void Init (palBody *body)
virtual void GetContactPosition (palVector3 &contact)=0


Detailed Description

A Contact Sensor A contact sensor returns the location where a collision between the given body and any other object occurs.
contact.jpg
The diagram indicates the contact position returned when two objects collide.

Member Function Documentation

virtual void palContactSensor::GetContactPosition ( palVector3 &  contact  )  [pure virtual]

Gets the position where a collision occured.

Parameters:
contact A vector representing the location where the collision last occured.

void palContactSensor::Init ( palBody body  )  [virtual]

Initializes the Contact sensor. Attaches a contact sensor to a given body.

Parameters:
body The body which the sensor is attached to.


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

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1