PhysicsVortexEvent

Represents a physics vortex event

see

https://doc.babylonjs.com/how_to/using_the_physics_engine

Hierarchy

  • PhysicsVortexEvent

Index

Constructors

Methods

Constructors

constructor

Find examples in Playground
  • Initializes the physics vortex event

    Parameters

    • _scene: Scene

      The BabylonJS scene

    • _origin: Vector3

      The origin position of the vortex

    • _radius: number

      The radius of the vortex

    • _strength: number

      The strength of the vortex

    • _height: number

      The height of the vortex

    Returns PhysicsVortexEvent

Methods

disable

Find examples in Playground
  • disable(): void
  • Disables the cortex.

    Returns void

dispose

Find examples in Playground
  • dispose(force?: boolean): void
  • Disposes the sphere.

    Parameters

    • Optional force: boolean

    Returns void

enable

Find examples in Playground
  • enable(): void
  • Enables the vortex.

    Returns void

getData

Find examples in Playground
  • Returns the data related to the vortex event (cylinder).

    Returns PhysicsVortexEventData

    The physics vortex event data

Generated using TypeDoc