Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PhysicsHelper

Hierarchy

  • PhysicsHelper

Index

Constructors

constructor

  • Initializes the Physics helper

    Parameters

    • scene: Scene

      Babylon.js scene

    Returns PhysicsHelper

Methods

applyRadialExplosionForceSearch playground for applyRadialExplosionForce

applyRadialExplosionImpulseSearch playground for applyRadialExplosionImpulse

gravitationalFieldSearch playground for gravitationalField

updraftSearch playground for updraft

  • 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

vortexSearch playground for vortex

  • 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

Legend

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