RAIN.Sensors.BoxSensor Class Reference

BoxSensor is a simple sensor that uses a fixed size box collider to detect Aspects. More...

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

List of all members.

Public Member Functions

 BoxSensor ()
 Default constructor.
void Start ()
 Start() is the Unity event handler initializing the object on game startup.

Protected Member Functions

virtual bool CreateEvidence (GameObject evidence)
 CreateEvidence tells the RAIN Belief system to add new evidence regarding the existence of the GameObject. This is usually called in response to Enter or Stay collider events.
override void Enter (GameObject evidence)
override void Stay (GameObject evidence)
override void Exit (GameObject evidence)

Detailed Description

BoxSensor is a simple sensor that uses a fixed size box collider to detect Aspects.


Constructor & Destructor Documentation

RAIN.Sensors.BoxSensor.BoxSensor ( )

Default constructor.


Member Function Documentation

virtual bool RAIN.Sensors.BoxSensor.CreateEvidence ( GameObject  evidence) [protected, virtual]

CreateEvidence tells the RAIN Belief system to add new evidence regarding the existence of the GameObject. This is usually called in response to Enter or Stay collider events.

Parameters:
evidenceThe GameObject to add evidence for
Returns:
Returns true if a belief was created or updated, false otherwise

Reimplemented in RAIN.Sensors.ExpandingBoxSensor.

void RAIN.Sensors.BoxSensor.Start ( )

Start() is the Unity event handler initializing the object on game startup.