RAIN.Sensors.TriggerSensor Class Reference
Inheritance diagram for RAIN.Sensors.TriggerSensor:
RAIN.Sensors.Sensor RAIN.Sensors.RaycastSensor RAIN.Sensors.BoxSensor RAIN.Sensors.SphereSensor RAIN.Sensors.ExpandingBoxSensor

List of all members.

Public Member Functions

void Update ()
void OnTriggerEnter (Collider sensedObject)
 OnTriggerEnter event handler when the collider detects a trigger collision.
void OnTriggerStay (Collider sensedObject)
 OnTriggerStay event handler when a trigger remains colliding within the sensor.
void OnTriggerExit (Collider sensedObject)
 OnTriggerExit event handler when a trigger stops colliding.

Protected Member Functions

abstract void Enter (GameObject sensed)
abstract void Stay (GameObject sensed)
abstract void Exit (GameObject sensed)

Protected Attributes

bool allowConstantUpdates = false
float _stayDelayMinimumLapse = 0.20f
float _stayDelayTimer = -1.0f

Member Function Documentation

void RAIN.Sensors.TriggerSensor.OnTriggerEnter ( Collider  sensedObject)

OnTriggerEnter event handler when the collider detects a trigger collision.

Parameters:
sensedObjectThe collider this sensor collided with
void RAIN.Sensors.TriggerSensor.OnTriggerExit ( Collider  sensedObject)

OnTriggerExit event handler when a trigger stops colliding.

Parameters:
sensedObjectThe collider leaving the collision
void RAIN.Sensors.TriggerSensor.OnTriggerStay ( Collider  sensedObject)

OnTriggerStay event handler when a trigger remains colliding within the sensor.

Parameters:
sensedObjectThe collider still sensed