C# Class Indiefreaks.Xna.Logic.Steering.ObstacleAvoidance

Steering Behavior that creates a force that tends to avoid provided agents
Inheritance: ContextualSteeringBehavior
Mostra file Open project: Indiefreaks/igf

Public Methods

Method Description
CanCompute ( ) : bool

Defines if the current steering behavior can execute or not.

Override this method to add a global condition to this behavior

Compute ( ) : void

Computes the current Steering Behavior

DetectClosestObstacle ( ) : void

Defines the closest obstacle

ObstacleAvoidance ( ) : System

Creates a new instance

Method Details

CanCompute() public method

Defines if the current steering behavior can execute or not.
Override this method to add a global condition to this behavior
public CanCompute ( ) : bool
return bool

Compute() public method

Computes the current Steering Behavior
public Compute ( ) : void
return void

DetectClosestObstacle() public method

Defines the closest obstacle
public DetectClosestObstacle ( ) : void
return void

ObstacleAvoidance() public method

Creates a new instance
public ObstacleAvoidance ( ) : System
return System