C# 클래스 HoloToolkit.Unity.Interpolator

A MonoBehaviour that interpolates a transform's position, rotation or scale.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: Microsoft/HoloToolkit-Unity 1 사용 예제들

공개 메소드들

메소드 설명
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