Class AutoRotationBehavior
Hierarchy
- AutoRotationBehavior
Implements
Index
Constructors
constructor
Returns AutoRotationBehavior
Properties
target AlphaSearch playground for targetAlpha
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 void
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 void
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 void
name
Gets the name of the behavior.
Returns string
rotation In Progress
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 void
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
reset Last Interaction TimeSearch playground for resetLastInteractionTime
Force-reset the last interaction time
Parameters
Optional customTime: number
an optional time that will be used instead of the current last interaction time. For example
Date.now()
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