RAIN.Sensors.ObstacleAvoidanceCollider Class Reference

ObstacleAvoidanceCollider is the base class for obstacle avoidance colliders. It is an abstract class, serving as a common base upon which specific collider types (sphere, box, etc.) can be added. More...

Inheritance diagram for RAIN.Sensors.ObstacleAvoidanceCollider:
RAIN.Sensors.BoxObstacleAvoidanceCollider RAIN.Sensors.SphereObstacleAvoidanceCollider

List of all members.

Public Member Functions

 ObstacleAvoidanceCollider ()
 Default constructor.
void OnTriggerEnter (Collider sensedObject)
 OnTriggerEnter event handler when the collider detects a trigger collision.
void OnTriggerExit (Collider sensedObject)
 OnTriggerExit event handler when a trigger stops colliding.

Public Attributes

bool collideWithTerrain = false
 Determine if the collider should include Terrain - usually this will be false, since we expect our AI to collide with Terrain often.

Protected Attributes

Dictionary< Collider,
PhysicalEntity
obstacles = new Dictionary<Collider, PhysicalEntity>()
 A list of the obstacles currently tracked by this collider.

Properties

ICollection< PhysicalEntityObstacles [get]
abstract float Radius [get]

Detailed Description

ObstacleAvoidanceCollider is the base class for obstacle avoidance colliders. It is an abstract class, serving as a common base upon which specific collider types (sphere, box, etc.) can be added.


Constructor & Destructor Documentation

RAIN.Sensors.ObstacleAvoidanceCollider.ObstacleAvoidanceCollider ( )

Default constructor.


Member Function Documentation

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

OnTriggerEnter event handler when the collider detects a trigger collision.

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

OnTriggerExit event handler when a trigger stops colliding.

Parameters:
sensedObjectThe collider leaving the collision

Member Data Documentation

Determine if the collider should include Terrain - usually this will be false, since we expect our AI to collide with Terrain often.

Dictionary<Collider, PhysicalEntity> RAIN.Sensors.ObstacleAvoidanceCollider.obstacles = new Dictionary<Collider, PhysicalEntity>() [protected]

A list of the obstacles currently tracked by this collider.