Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BouncingBehavior

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

Properties

lowerRadiusTransitionRangeSearch playground for lowerRadiusTransitionRange

lowerRadiusTransitionRange: number

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

transitionDurationSearch playground for transitionDuration

transitionDuration: number

The duration of the animation, in milliseconds

upperRadiusTransitionRangeSearch playground for upperRadiusTransitionRange

upperRadiusTransitionRange: number

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

Static EasingFunctionSearch playground for EasingFunction

EasingFunction: BackEase

The easing function used by animations

Static EasingModeSearch playground for EasingMode

EasingMode: number

The easing mode used by animations

Accessors

autoTransitionRange

  • get autoTransitionRange(): boolean
  • set autoTransitionRange(value: boolean): any
  • 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 any

name

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

    Returns string

Methods

attachSearch playground for attach

  • Attaches the behavior to its arc rotate camera.

    Parameters

    Returns void

detachSearch playground for detach

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

    Returns void

initSearch playground for init

  • init(): void
  • Initializes the behavior.

    Returns void

stopAllAnimationsSearch playground for stopAllAnimations

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

    Returns void

Legend

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