RAIN.Sensors.SphereSensor Class Reference

SphereSensor is a simple sensor that uses a fixed size sphere collider to detect Aspects. More...

Inheritance diagram for RAIN.Sensors.SphereSensor:
RAIN.Sensors.RaycastSensor RAIN.Sensors.TriggerSensor RAIN.Sensors.Sensor

List of all members.

Public Member Functions

 SphereSensor ()
 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

SphereSensor is a simple sensor that uses a fixed size sphere collider to detect Aspects.


Constructor & Destructor Documentation

RAIN.Sensors.SphereSensor.SphereSensor ( )

Default constructor.


Member Function Documentation

virtual bool RAIN.Sensors.SphereSensor.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
void RAIN.Sensors.SphereSensor.Start ( )

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