C# Класс FootballSimulation.SteeringStrategies

Steering Behaviors based on http://www.red3d.com/cwr/steer/gdc99/
Показать файл Открыть проект

Открытые методы

Метод Описание
Arrive ( IPointMass player, Vector2 target, float maxSpeed, float slowingRadius ) : Vector2

Move to and stop at a specified position.

FuturePosition ( IPointMass player, IPointMass target, float max ) : Vector2

Estimates the future position of target.

GetSlowingRadius ( IPointMass player ) : float

Pursue ( IPointMass player, IPointMass target, float maxEstimatedTime ) : Vector2

Move toward a target's future position. This method assumes the player will move at their maximum speed. It also ignores friction on the target.

Seek ( IPointMass player, Vector2 target, float desiredSpeed ) : Vector2

Move toward a specified position.

Описание методов

Arrive() публичный статический Метод

Move to and stop at a specified position.
public static Arrive ( IPointMass player, Vector2 target, float maxSpeed, float slowingRadius ) : Vector2
player IPointMass The player that should arrive at the specified position.
target Vector2 The target position.
maxSpeed float The maximum speed at which the player should move towards the target position.
slowingRadius float The radius in which the player should begin to slow down.
Результат Vector2

FuturePosition() публичный статический Метод

Estimates the future position of target.
public static FuturePosition ( IPointMass player, IPointMass target, float max ) : Vector2
player IPointMass The player on which the future position estimate is to be performed.
target IPointMass The target position of the player.
max float The maximum estimated time.
Результат Vector2

GetSlowingRadius() публичный статический Метод

public static GetSlowingRadius ( IPointMass player ) : float
player IPointMass
Результат float

Pursue() публичный статический Метод

Move toward a target's future position. This method assumes the player will move at their maximum speed. It also ignores friction on the target.
public static Pursue ( IPointMass player, IPointMass target, float maxEstimatedTime ) : Vector2
player IPointMass The player that should pursue the specified location.
target IPointMass The target position that the player should pursue.
maxEstimatedTime float The maximum estimated time.
Результат Vector2

Seek() публичный статический Метод

Move toward a specified position.
public static Seek ( IPointMass player, Vector2 target, float desiredSpeed ) : Vector2
player IPointMass The player that should seek the specified position.
target Vector2 The target position.
desiredSpeed float The desired speed at which the player should move towards the target.
Результат Vector2