編集

次の方法で共有


Interpolator.NonLinearInterpolateTo(Vector3, Vector3, Single, Single) Method

Definition

Interpolates smoothly to a target position.

public:
 static UnityEngine::Vector3 NonLinearInterpolateTo(UnityEngine::Vector3 start, UnityEngine::Vector3 target, float deltaTime, float speed);
public static UnityEngine.Vector3 NonLinearInterpolateTo (UnityEngine.Vector3 start, UnityEngine.Vector3 target, float deltaTime, float speed);
static member NonLinearInterpolateTo : UnityEngine.Vector3 * UnityEngine.Vector3 * single * single -> UnityEngine.Vector3
Public Shared Function NonLinearInterpolateTo (start As Vector3, target As Vector3, deltaTime As Single, speed As Single) As Vector3

Parameters

start
UnityEngine.Vector3

The starting position.

target
UnityEngine.Vector3

The destination position.

deltaTime
Single

Caller-provided Time.deltaTime.

speed
Single

The speed to apply to the interpolation.

Returns

UnityEngine.Vector3

New interpolated position closer to target

Applies to