Class KaijuAgentsPursue
Standalone pursue steering extension methods.
Inheritance
Namespace: KaijuSolutions.Agents.Extensions
Syntax
public static class KaijuAgentsPursue
Methods
Pursue(Component, Component, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Component, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Component target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, GameObject, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, GameObject target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Transform, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Transform target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector2, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector2 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Component, Vector3, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Component position, Vector3 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Component, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Component target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, GameObject, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, GameObject target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Transform, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Transform target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector2, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector2 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(GameObject, Vector3, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this GameObject position, Vector3 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Component, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Component target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, GameObject, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, GameObject target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Transform, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Transform target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector2, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector2 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Transform, Vector3, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Transform position, Vector3 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Component, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Component target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, GameObject, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, GameObject target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Transform, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Transform target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector2, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector2 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector2, Vector3, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector2 position, Vector3 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Component, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Component target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Component | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, GameObject, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, GameObject target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| GameObject | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Transform, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Transform target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Transform | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector2, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector2 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector2 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, Component, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, Component previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, Component, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, Component previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Component | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, GameObject, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, GameObject previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, GameObject, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, GameObject previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| GameObject | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, Transform, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, Transform previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, Transform, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, Transform previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Transform | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, Vector2, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, Vector2 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, Vector2, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, Vector2 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector2 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, Vector3, Single, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, Vector3 previous, float speed, float delta, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| System.Single | delta | The time since the last recorded position. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |
Pursue(Vector3, Vector3, Vector3, Single, out Vector2)
Calculate a pursue behaviour.
Declaration
public static Vector2 Pursue(this Vector3 position, Vector3 target, Vector3 previous, float speed, out Vector2 future)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The current position of the instance to calculate the movement for. |
| Vector3 | target | The target to move in relation to. |
| Vector3 | previous | The previous position of the target. |
| System.Single | speed | The maximum speed that the position can update at. |
| Vector2 | future | The predicted future position. |
Returns
| Type | Description |
|---|---|
| Vector2 | The calculated movement. |