旋轉控制器

公開類別 RotationController

使用 TwistGestureRecognizer 操控 BaseTransformableNode 的旋轉。

公用建構函式

公用方法

布林
浮點值
void
void
void
setRotationRateDegrees(floatrotRateDegrees)

沿用的方法

公用建構函式

public RotationController (BaseTransformableNodetransformableNode、TwistGestureRecognizerGestureRecognizer)

參數
transformableNode
手勢辨識器

公用方法

public 布林值 canStartTransformation(TwistGesture 手勢)

參數
手勢

public float getRotationRateDegrees ()

public onContinueTransformation (TwistGesture 手勢)

參數
手勢

public onEndTransformation (TwistGesture 手勢)

參數
手勢

public setRotationRateDegrees (floatrotRateDegrees)

參數
snapshotRateDegrees