• Preparing search index...
  • The search index is not available
@xeokit/sdk - v0.1.0
  • @xeokit/sdk
  • simulation
  • physics
  • getScenePhysics

Function getScenePhysics

  • getScenePhysics(scene: Scene, params: ScenePhysicsParams): ScenePhysics

    Lazily creates the ScenePhysics for a Scene, or returns the existing one. Auto-destroyed when the Scene fires onSceneDestroyed.

    The first caller decides the rapier module and gravity; subsequent callers are handed the same instance and the params.rapier / params.gravity they pass in are ignored.

    Parameters

    • scene: Scene
    • params: ScenePhysicsParams

    Returns ScenePhysics

    • Defined in packages/sdk/src/simulation/physics/getScenePhysics.ts:20

Settings

Member Visibility
@xeokit/sdk - v0.1.0
  • Loading...

Generated using TypeDoc