PhysicsUpdraftEvent

Represents a physics updraft event

see

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

Hierarchy

  • PhysicsUpdraftEvent

Index

Constructors

Methods

Constructors

constructor

Find examples in Playground
  • Initializes the physics updraft event

    Parameters

    • _scene: Scene

      BabylonJS scene

    • _origin: Vector3

      The origin position of the updraft

    • _radius: number

      The radius of the updraft

    • _strength: number

      The strength of the updraft

    • _height: number

      The height of the updraft

    • _updraftMode: PhysicsUpdraftMode

      The mode of the updraft

    Returns PhysicsUpdraftEvent

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

      Specifies if the updraft should be disposed by force

    Returns void

enable

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

    Returns void

getData

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

    Returns PhysicsUpdraftEventData

    A physics updraft event

Generated using TypeDoc