RotationController

  • RotationController manipulates the rotation of a BaseTransformableNode using a TwistGestureRecognizer.

  • It provides methods to control the rotation rate and respond to gesture events.

  • The class inherits functionality from BaseTransformationController for managing transformations.

  • RotationController allows developers to implement custom rotation behavior based on user gestures.

  • It offers public methods for starting, continuing, and ending rotation transformations.

public class RotationController

Manipulates the rotation of a BaseTransformableNode using a TwistGestureRecognizer.

Public Constructors

RotationController(BaseTransformableNode transformableNode, TwistGestureRecognizer gestureRecognizer)

Public Methods

boolean
float
void
void
void
setRotationRateDegrees(float rotationRateDegrees)

Inherited Methods

Public Constructors

public RotationController (BaseTransformableNode transformableNode, TwistGestureRecognizer gestureRecognizer)

Parameters
transformableNode
gestureRecognizer

Public Methods

public boolean canStartTransformation (TwistGesture gesture)

Parameters
gesture

public float getRotationRateDegrees ()

public void onContinueTransformation (TwistGesture gesture)

Parameters
gesture

public void onEndTransformation (TwistGesture gesture)

Parameters
gesture

public void setRotationRateDegrees (float rotationRateDegrees)

Parameters
rotationRateDegrees