C# 클래스 FootballSimulation.SteeringStrategies

Steering Behaviors based on http://www.red3d.com/cwr/steer/gdc99/
파일 보기 프로젝트 열기: PurdueSIGAI/Soccer

공개 메소드들

메소드 설명
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