Class AutoRotationBehavior
Hierarchy
- AutoRotationBehavior
Implements
Index
Accessors
idle Rotation Speed
-
Gets the default speed at which the camera rotates around the model.
Returns number
-
Sets the default speed at which the camera rotates around the model.
Parameters
-
speed: number
Returns any
-
idle Rotation Spinup Time
-
Gets the time (milliseconds) to take to spin up to the full idle rotation speed.
Returns number
-
Sets the time (milliseconds) to take to spin up to the full idle rotation speed.
Parameters
-
time: number
Returns any
-
idle Rotation Wait Time
-
Gets the time (milliseconds) to wait after user interaction before the camera starts rotating.
Returns number
-
Sets the time (in milliseconds) to wait after user interaction before the camera starts rotating.
Parameters
-
time: number
Returns any
-
name
-
Gets the name of the behavior.
Returns string
rotation InProgress
-
Gets a value indicating if the camera is currently rotating because of this behavior
Returns boolean
zoom Stops Animation
-
Gets the flag that indicates if user zooming should stop animation.
Returns boolean
-
Sets the flag that indicates if user zooming should stop animation.
Parameters
-
flag: boolean
Returns any
-
Methods
attachSearch playground for attach
-
Attaches the behavior to its arc rotate camera.
Parameters
-
camera: ArcRotateCamera
Defines the camera to attach the behavior to
Returns void
-
detachSearch playground for detach
-
Detaches the behavior from its current arc rotate camera.
Returns void
initSearch playground for init
-
Initializes the behavior.
Returns void
The autoRotation behavior (AutoRotationBehavior) is designed to create a smooth rotation of an ArcRotateCamera when there is no user interaction.
https://doc.babylonjs.com/how_to/camera_behaviors#autorotation-behavior