Bearbeiten

Freigeben über


LineUtility.GetPointAlongPhysicalParabola Method

Definition

Gets the point along a physics based parabola.

public:
 static UnityEngine::Vector3 GetPointAlongPhysicalParabola(UnityEngine::Vector3 origin, UnityEngine::Vector3 direction, float velocity, UnityEngine::Vector3 gravity, float time);
public static UnityEngine.Vector3 GetPointAlongPhysicalParabola (UnityEngine.Vector3 origin, UnityEngine.Vector3 direction, float velocity, UnityEngine.Vector3 gravity, float time);
static member GetPointAlongPhysicalParabola : UnityEngine.Vector3 * UnityEngine.Vector3 * single * UnityEngine.Vector3 * single -> UnityEngine.Vector3
Public Function GetPointAlongPhysicalParabola (origin As Vector3, direction As Vector3, velocity As Single, gravity As Vector3, time As Single) As Vector3

Parameters

origin
UnityEngine.Vector3

The point in space where the parabola starts

direction
UnityEngine.Vector3

The direction the line is intended to go

velocity
Single
gravity
UnityEngine.Vector3
time
Single

Returns

UnityEngine.Vector3

The calculated point.

Applies to