Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IWebXRControllerPhysicsOptions

Options for the controller physics feature

Hierarchy

  • IWebXRControllerPhysicsOptions

Index

Properties

Optional enableHeadsetImpostorSearch playground for enableHeadsetImpostor

enableHeadsetImpostor: boolean

Should the headset get its own impostor

Optional headsetImpostorParamsSearch playground for headsetImpostorParams

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

Optional physicsPropertiesSearch playground for physicsProperties

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!

xrInputSearch playground for xrInput

xrInput: WebXRInput

the xr input to use with this pointer selection

Legend

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