Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PhysicsHelper

Index

Constructors

  • Initializes the Physics helper

    Parameters

    • scene: Scene

      Babylon.js scene

    Returns PhysicsHelper

Methods

  • 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

  • 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 constructor
  • Static method

Settings

Theme