PhysicsGravitationalFieldEvent

Represents a gravitational field event

see

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

Hierarchy

  • PhysicsGravitationalFieldEvent

Index

Constructors

Methods

Constructors

constructor

Find examples in Playground
  • Initializes the physics gravitational field event

    Parameters

    • physicsHelper: PhysicsHelper

      A physics helper

    • scene: Scene

      BabylonJS scene

    • origin: Vector3

      The origin position of the gravitational field event

    • radius: number

      The radius of the gravitational field event

    • strength: number

      The strength of the gravitational field event

    • Optional falloff: PhysicsRadialImpulseFalloff

      The falloff for the gravitational field event

    Returns PhysicsGravitationalFieldEvent

Methods

disable

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

    Returns void

dispose

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

    Parameters

    • Optional force: boolean

      The force to dispose from the gravitational field event

    Returns void

enable

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

    Returns void

getData

Find examples in Playground

Generated using TypeDoc