Method | Description | |
---|---|---|
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.
|
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. |
return | Vector2 |
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. |
return | Vector2 |
public static GetSlowingRadius ( IPointMass player ) : float | ||
player | IPointMass | |
return | float |
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. |
return | Vector2 |
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. |
return | Vector2 |