PhysicsHelper

Hierarchy

  • PhysicsHelper

Index

Constructors

constructor

Find examples in Playground
  • Initializes the Physics helper

    Parameters

    • scene: Scene

      Babylon.js scene

    Returns PhysicsHelper

Methods

applyRadialExplosionForce

Find examples in Playground

applyRadialExplosionImpulse

Find examples in Playground

gravitationalField

Find examples in Playground

updraft

Find examples in Playground
  • Creates a physics updraft event

    Parameters

    • origin: Vector3

      the origin of the updraft

    • radiusOrEventOptions: number | PhysicsUpdraftEventOptions

      the radius or the options of the updraft

    • Optional strength: number

      the strength of the updraft

    • Optional height: number

      the height of the updraft

    • Optional updraftMode: PhysicsUpdraftMode

      possible options: Center & Perpendicular. Defaults to Center

    Returns Nullable<PhysicsUpdraftEvent>

    A physics updraft event, or null

vortex

Find examples in Playground
  • Creates a physics vortex event

    Parameters

    • origin: Vector3

      the of the vortex

    • radiusOrEventOptions: number | PhysicsVortexEventOptions

      the radius or the options of the vortex

    • Optional strength: number

      the strength of the vortex

    • Optional height: number

      the height of the vortex

    Returns Nullable<PhysicsVortexEvent>

    a Physics vortex event, or null A physics vortex event or null

Generated using TypeDoc