C# Класс HoloToolkit.Unity.Interpolator

A MonoBehaviour that interpolates a transform's position, rotation or scale.
Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Awake ( ) : void
NonLinearInterpolateTo ( Vector3 start, Vector3 target, float deltaTime, float speed ) : Vector3

Interpolates smoothly to a target position.

Reset ( ) : void

Stops the transform in place and terminates any animations.

SetTargetLocalRotation ( Quaternion target ) : void

Sets the target local rotation for the transform and if rotation wasn't already animating, fires the InterpolationStarted event.

SetTargetLocalScale ( Vector3 target ) : void

Sets the target local scale for the transform and if scale wasn't already animating, fires the InterpolationStarted event.

SetTargetPosition ( Vector3 target ) : void

Sets the target position for the transform and if position wasn't already animating, fires the InterpolationStarted event.

SetTargetRotation ( Quaternion target ) : void

Sets the target rotation for the transform and if rotation wasn't already animating, fires the InterpolationStarted event.

SnapToTarget ( ) : void

Snaps to the final target and stops interpolating

StopInterpolating ( ) : void

Stops the interpolation regardless if it has reached the target

Update ( ) : void

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

NonLinearInterpolateTo() публичный статический Метод

Interpolates smoothly to a target position.
public static NonLinearInterpolateTo ( Vector3 start, Vector3 target, float deltaTime, float speed ) : Vector3
start UnityEngine.Vector3 The starting position.
target UnityEngine.Vector3 The destination position.
deltaTime float Caller-provided Time.deltaTime.
speed float The speed to apply to the interpolation.
Результат UnityEngine.Vector3

Reset() публичный Метод

Stops the transform in place and terminates any animations.
public Reset ( ) : void
Результат void

SetTargetLocalRotation() публичный Метод

Sets the target local rotation for the transform and if rotation wasn't already animating, fires the InterpolationStarted event.
public SetTargetLocalRotation ( Quaternion target ) : void
target UnityEngine.Quaternion The new target local rotation for the transform.
Результат void

SetTargetLocalScale() публичный Метод

Sets the target local scale for the transform and if scale wasn't already animating, fires the InterpolationStarted event.
public SetTargetLocalScale ( Vector3 target ) : void
target UnityEngine.Vector3 The new target local rotation for the transform.
Результат void

SetTargetPosition() публичный Метод

Sets the target position for the transform and if position wasn't already animating, fires the InterpolationStarted event.
public SetTargetPosition ( Vector3 target ) : void
target UnityEngine.Vector3 The new target position to for the transform.
Результат void

SetTargetRotation() публичный Метод

Sets the target rotation for the transform and if rotation wasn't already animating, fires the InterpolationStarted event.
public SetTargetRotation ( Quaternion target ) : void
target UnityEngine.Quaternion The new target rotation for the transform.
Результат void

SnapToTarget() публичный Метод

Snaps to the final target and stops interpolating
public SnapToTarget ( ) : void
Результат void

StopInterpolating() публичный Метод

Stops the interpolation regardless if it has reached the target
public StopInterpolating ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void