#include <proximitytrigger.h>

Public Member Functions | |
| ProximityTrigger (const std::string &name="ProximityTrigger") | |
| Trigger * | GetTrigger () |
| Non-const getter for the internal Trigger that this ProximityTrigger holds. | |
| const Trigger * | GetTrigger () const |
| Const getter for the internal Trigger that this ProximityTrigger holds. | |
| virtual bool | FilterContact (dContact *contact, Transformable *collider) |
| Callback from Scene when a contact occurs. | |
| void | SetTimeDelay (float delay) |
| float | GetTimeDelay () const |
Protected Member Functions | |
| virtual | ~ProximityTrigger () |
| void | SetTraversalNumber (int number) |
Classes | |
| class | NodeCallback |
| Node callback to update traversal numbers inside ProximityTrigger. | |
By default, it has a collision sphere set with a radius of 5 units. To filter what can collide with this ProximityTrigger use SetCollisionCollideBits as the OR of all the CollisionCategories you want. A ProximityTrigger is fired only once per touch of a Transformable.
| ProximityTrigger::ProximityTrigger | ( | const std::string & | name = "ProximityTrigger" |
) |
| virtual dtABC::ProximityTrigger::~ProximityTrigger | ( | ) | [inline, protected, virtual] |
| Trigger* dtABC::ProximityTrigger::GetTrigger | ( | ) | [inline] |
Non-const getter for the internal Trigger that this ProximityTrigger holds.
Use this to set the Action on the internal trigger.
| const Trigger* dtABC::ProximityTrigger::GetTrigger | ( | ) | const [inline] |
Const getter for the internal Trigger that this ProximityTrigger holds.
Use this to query the Action on the internal trigger.
| bool ProximityTrigger::FilterContact | ( | dContact * | contact, | |
| Transformable * | collider | |||
| ) | [virtual] |
Callback from Scene when a contact occurs.
This normally is used to filter out Transformable that you do not want to perform expensive physics calculations on, but here we use it to fire our Trigger.
| void dtABC::ProximityTrigger::SetTimeDelay | ( | float | delay | ) | [inline] |
| float dtABC::ProximityTrigger::GetTimeDelay | ( | ) | const [inline] |
| void dtABC::ProximityTrigger::SetTraversalNumber | ( | int | number | ) | [inline, protected] |