Class IWebXRControllerPhysicsOptions
Constructors
constructor
-
Returns IWebXRControllerPhysicsOptions
Properties
Optionalenable Headset Impostor
enableHeadsetImpostor?: boolean
Should the headset get its own impostor
Optionalheadset Impostor Params
headsetImpostorParams?: {
friction?: number;
impostorSize?: number | { depth: number; height: number; width: number };
impostorType: number;
restitution?: number;
}
friction?: number;
impostorSize?: number | { depth: number; height: number; width: number };
impostorType: number;
restitution?: number;
}
Optional parameters for the headset impostor
Type Declaration
-
Optionalfriction?: numberFriction 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?: numberRestitution
Optionalphysics Properties
physicsProperties?: {
friction?: number;
impostorSize?: number | { depth: number; height: number; width: number };
impostorType?: number;
restitution?: number;
useControllerMesh?: boolean;
}
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?: numberFriction definitions
-
OptionalimpostorSize?: number | { depth: number; height: number; width: number }the size of the impostor. Defaults to 10cm
-
OptionalimpostorType?: numberThe type of impostor to create. Default is sphere
-
Optionalrestitution?: numberRestitution
-
OptionaluseControllerMesh?: booleanIf 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!
xr Input
the xr input to use with this pointer selection
Options for the controller physics feature