API

Class IWebXRControllerPhysicsOptions

Options for the controller physics feature

Index
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

  • Optionalfriction?: number

    Friction definitions

  • OptionalimpostorSize?: 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

  • Optionalrestitution?: 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

  • Optionalfriction?: number

    Friction definitions

  • OptionalimpostorSize?: number | { depth: number; height: number; width: number }

    the size of the impostor. Defaults to 10cm

  • OptionalimpostorType?: number

    The type of impostor to create. Default is sphere

  • Optionalrestitution?: number

    Restitution

  • OptionaluseControllerMesh?: 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