Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for the controller physics feature

Hierarchy

  • IWebXRControllerPhysicsOptions

Index

Constructors

Properties

enableHeadsetImpostor?: boolean

Should the headset get its own impostor

headsetImpostorParams?: { friction?: number; impostorSize?: number | { depth: number; height: number; width: number }; impostorType: number; restitution?: number }

Optional parameters for the headset impostor

Type declaration

  • Optional friction?: number

    Friction definitions

  • Optional impostorSize?: number | { depth: number; height: number; width: number }

    the size of the impostor. Defaults to 10cm

  • impostorType: number

    The type of impostor to create. Default is sphere

  • Optional restitution?: number

    Restitution

physicsProperties?: { friction?: number; impostorSize?: number | { depth: number; height: number; width: number }; impostorType?: number; restitution?: number; useControllerMesh?: boolean }

The physics properties of the future impostors

Type declaration

  • Optional friction?: number

    Friction definitions

  • Optional impostorSize?: number | { depth: number; height: number; width: number }

    the size of the impostor. Defaults to 10cm

  • Optional impostorType?: number

    The type of impostor to create. Default is sphere

  • Optional restitution?: number

    Restitution

  • Optional useControllerMesh?: boolean

    If set to true, a mesh impostor will be created when the controller mesh was loaded Note that this requires a physics engine that supports mesh impostors!

xrInput: WebXRInput

the xr input to use with this pointer selection

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme