Options
All
  • Public
  • Public/Protected
  • All
Menu

Add a bouncing effect to an ArcRotateCamera when reaching a specified minimum and maximum radius

see

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

Hierarchy

  • BouncingBehavior

Implements

Index

Constructors

Properties

lowerRadiusTransitionRange: number

Length of the distance animated by the transition when lower radius is reached

transitionDuration: number

The duration of the animation, in milliseconds

upperRadiusTransitionRange: number

Length of the distance animated by the transition when upper radius is reached

EasingFunction: BackEase

The easing function used by animations

EasingMode: number

The easing mode used by animations

Accessors

  • get autoTransitionRange(): boolean
  • set autoTransitionRange(value: boolean): void
  • Gets a value indicating if the lowerRadiusTransitionRange and upperRadiusTransitionRange are defined automatically

    Returns boolean

  • Sets a value indicating if the lowerRadiusTransitionRange and upperRadiusTransitionRange are defined automatically Transition ranges will be set to 5% of the bounding box diagonal in world space

    Parameters

    • value: boolean

    Returns void

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

    Returns string

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

  • stopAllAnimations(): void
  • Stops and removes all animations that have been applied to the camera

    Returns void

Legend

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

Settings

Theme