Options
All
  • Public
  • Public/Protected
  • All
Menu

The autoRotation behavior (AutoRotationBehavior) is designed to create a smooth rotation of an ArcRotateCamera when there is no user interaction.

see

https://doc.babylonjs.com/how_to/camera_behaviors#autorotation-behavior

Hierarchy

  • AutoRotationBehavior

Implements

Index

Constructors

Properties

targetAlpha: Nullable<number>

Accessors

  • get idleRotationSpeed(): number
  • set idleRotationSpeed(speed: number): void
  • 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

  • get idleRotationSpinupTime(): number
  • set idleRotationSpinupTime(time: number): void
  • 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

  • get idleRotationWaitTime(): number
  • set idleRotationWaitTime(time: number): void
  • 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

  • get name(): string
  • Gets the name of the behavior.

    Returns string

  • get rotationInProgress(): boolean
  • Gets a value indicating if the camera is currently rotating because of this behavior

    Returns boolean

  • get zoomStopsAnimation(): boolean
  • set zoomStopsAnimation(flag: boolean): void
  • 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

  • Attaches the behavior to its arc rotate camera.

    Parameters

    Returns void

  • detach(): void
  • Detaches the behavior from its current arc rotate camera.

    Returns void

  • init(): void
  • Initializes the behavior.

    Returns void

  • resetLastInteractionTime(customTime?: number): void
  • 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

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme