Page Summary
-
RotationControllermanipulates the rotation of aBaseTransformableNodeusing aTwistGestureRecognizer. -
It provides methods to control the rotation rate and respond to gesture events.
-
The class inherits functionality from
BaseTransformationControllerfor managing transformations. -
RotationControllerallows developers to implement custom rotation behavior based on user gestures. -
It offers public methods for starting, continuing, and ending rotation transformations.
Manipulates the rotation of a BaseTransformableNode using a TwistGestureRecognizer.
Public Constructors
|
RotationController(BaseTransformableNode transformableNode, TwistGestureRecognizer gestureRecognizer)
|
Public Methods
| boolean |
canStartTransformation(TwistGesture gesture)
|
| float | |
| void |
onContinueTransformation(TwistGesture gesture)
|
| void |
onEndTransformation(TwistGesture gesture)
|
| void |
setRotationRateDegrees(float rotationRateDegrees)
|
Inherited Methods
Public Constructors
public RotationController (BaseTransformableNode transformableNode, TwistGestureRecognizer gestureRecognizer)
Parameters
| transformableNode | |
|---|---|
| gestureRecognizer |
Public Methods
public float getRotationRateDegrees ()
public void setRotationRateDegrees (float rotationRateDegrees)
Parameters
| rotationRateDegrees |
|---|