- Sceneform SDK for Android
was open sourced and archived ( github.com/google-ar/sceneform-android-sdk
) with version 1.16.0.
- This site ( developers.google.com/sceneform
) serves as the documentation archive for the previous version, Sceneform SDK for Android
1.15.0.
- Do not use version 1.17.0 of the Sceneform Maven artifacts
.
- The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.
RotationController
Stay organized with collections
Save and categorize content based on your preferences.
Public Methods
boolean |
|
float |
|
void |
|
void |
|
void |
|
Inherited Methods
From class
java.lang.Object
Public Constructors
Parameters
transformableNode |
gestureRecognizer |
Public Methods
public
float
getRotationRateDegrees
()
public
void
setRotationRateDegrees
(float rotationRateDegrees)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eRotationController\u003c/code\u003e manipulates the rotation of a \u003ccode\u003eBaseTransformableNode\u003c/code\u003e using a \u003ccode\u003eTwistGestureRecognizer\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to control the rotation rate and respond to gesture events.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits functionality from \u003ccode\u003eBaseTransformationController\u003c/code\u003e for managing transformations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRotationController\u003c/code\u003e allows developers to implement custom rotation behavior based on user gestures.\u003c/p\u003e\n"],["\u003cp\u003eIt offers public methods for starting, continuing, and ending rotation transformations.\u003c/p\u003e\n"]]],["The `RotationController` class manages the rotation of a `BaseTransformableNode` using `TwistGestureRecognizer`. It's constructed with these two components. Core actions include determining if a transformation can start via `canStartTransformation`, continuing a rotation with `onContinueTransformation`, and finalizing it with `onEndTransformation`. It also provides `getRotationRateDegrees` and `setRotationRateDegrees` methods to manage the rotation speed. In addition it implements various interface methods such as onGestureStarted, onFinished, and onUpdated.\n"],null,[]]