Drag[en]gine Game Engine
1.21
|
Physics Module Touch Sensor Peer. More...
#include <deBasePhysicsTouchSensor.h>
Public Member Functions | |
Constructors and Destructors | |
deBasePhysicsTouchSensor () | |
Create new peer. More... | |
virtual | ~deBasePhysicsTouchSensor () |
Clean up peer. More... | |
Notifications | |
virtual void | PositionChanged () |
Position changed. More... | |
virtual void | OrientationChanged () |
Orientation changed. More... | |
virtual void | CollisionFilterChanged () |
Collision filter changed. More... | |
virtual void | IgnoreCollidersChanged () |
Ignore colliders changed. More... | |
virtual void | TrackEnterLeaveChanged () |
Track enter/leave changed. More... | |
virtual void | EnabledChanged () |
Enabled changed. More... | |
virtual void | ShapeChanged () |
Shape changed. More... | |
virtual bool | IsEmpty () |
Touch sensor contains no colliders. More... | |
virtual int | GetColliderCount () |
Number of colliders in touch sensor. More... | |
virtual deCollider * | GetColliderAt (int collider) |
Collider at index in touch sensor. More... | |
Collision Detection | |
virtual bool | PointInside (const decDVector &point) |
Test if a point is located inside the collider. More... | |
virtual void | AllHits (deBaseScriptingCollider *listener) |
Visit all touching elements with listener. More... | |
virtual void | RayHits (const decDVector &rayOrigin, const decVector &rayDirection, deBaseScriptingCollider *listener) |
Test ray for collision with the element in the given shape. More... | |
virtual void | ColliderHits (deCollider *collider, deBaseScriptingCollider *listener) |
Test collider for collision with scene elements. More... | |
virtual void | ColliderMoveHits (deCollider *collider, const decVector &displacement, deBaseScriptingCollider *listener) |
Test moving collider for collision with scene elements. More... | |
virtual void | ColliderRotateHits (deCollider *collider, const decVector &rotation, deBaseScriptingCollider *listener) |
Test rotating collider for collision with scene elements. More... | |
virtual void | ColliderMoveRotateHits (deCollider *collider, const decVector &displacement, const decVector &rotation, deBaseScriptingCollider *listener) |
Test moving and rotating collider for collision with scene elements. More... | |
Physics Module Touch Sensor Peer.
Touch sensor peer for the pyhsics module.
deBasePhysicsTouchSensor::deBasePhysicsTouchSensor | ( | ) |
Create new peer.
|
virtual |
Clean up peer.
|
virtual |
Visit all touching elements with listener.
To stop testing set StopTesting in the provided collision information object to true.
|
virtual |
Test collider for collision with scene elements.
For each collision the collisionResponse function of the listener assigned to the collider is called. To stop testing set StopTesting in the provided collision information object to true.
|
virtual |
Test moving collider for collision with scene elements.
For each collision starting with the earliest the collisionResponse function of the listener assigned to the collider is called. To stop testing set StopTesting in the provided collision information object to true.
|
virtual |
Test moving and rotating collider for collision with scene elements.
For each collision starting with the earliest the collisionResponse function of the listener assigned to the collider is called. To stop testing set StopTesting in the provided collision information object to true.
|
virtual |
Test rotating collider for collision with scene elements.
For each collision starting with the earliest the collisionResponse function of the listener assigned to the collider is called. To stop testing set StopTesting in the provided collision information object to true.
|
virtual |
Collision filter changed.
|
virtual |
Enabled changed.
|
virtual |
Collider at index in touch sensor.
collider | Index of the collider retrieve. |
|
virtual |
Number of colliders in touch sensor.
|
virtual |
Ignore colliders changed.
|
virtual |
Touch sensor contains no colliders.
|
virtual |
Orientation changed.
|
virtual |
Test if a point is located inside the collider.
|
virtual |
Position changed.
|
virtual |
Test ray for collision with the element in the given shape.
For each collision the collisionResponse function the given listener is called. To stop testing set StopTesting in the provided collision information object to true. The distance parameter in the collision response represents the actual distance to the ray origin along the ray direction.
|
virtual |
Shape changed.
|
virtual |
Track enter/leave changed.