Interpolator.NonLinearInterpolateTo(Vector3, Vector3, Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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