編輯

共用方式為


Solver.SmoothTo Method

Definition

Overloads

SmoothTo(Quaternion, Quaternion, Single, Single)

Slerps Quaternion source to goal, handles lerpTime of 0

SmoothTo(Vector3, Vector3, Single, Single)

Lerps Vector3 source to goal.

SmoothTo(Quaternion, Quaternion, Single, Single)

Slerps Quaternion source to goal, handles lerpTime of 0

public:
 static UnityEngine::Quaternion SmoothTo(UnityEngine::Quaternion source, UnityEngine::Quaternion goal, float deltaTime, float lerpTime);
public static UnityEngine.Quaternion SmoothTo (UnityEngine.Quaternion source, UnityEngine.Quaternion goal, float deltaTime, float lerpTime);
static member SmoothTo : UnityEngine.Quaternion * UnityEngine.Quaternion * single * single -> UnityEngine.Quaternion
Public Shared Function SmoothTo (source As Quaternion, goal As Quaternion, deltaTime As Single, lerpTime As Single) As Quaternion

Parameters

source
UnityEngine.Quaternion
goal
UnityEngine.Quaternion
deltaTime
Single
lerpTime
Single

Returns

UnityEngine.Quaternion

Applies to

SmoothTo(Vector3, Vector3, Single, Single)

Lerps Vector3 source to goal.

public:
 static UnityEngine::Vector3 SmoothTo(UnityEngine::Vector3 source, UnityEngine::Vector3 goal, float deltaTime, float lerpTime);
public static UnityEngine.Vector3 SmoothTo (UnityEngine.Vector3 source, UnityEngine.Vector3 goal, float deltaTime, float lerpTime);
static member SmoothTo : UnityEngine.Vector3 * UnityEngine.Vector3 * single * single -> UnityEngine.Vector3
Public Shared Function SmoothTo (source As Vector3, goal As Vector3, deltaTime As Single, lerpTime As Single) As Vector3

Parameters

source
UnityEngine.Vector3
goal
UnityEngine.Vector3
deltaTime
Single
lerpTime
Single

Returns

UnityEngine.Vector3

Remarks

Handles lerpTime of 0.

Applies to