Class: DesktopControls
Defined in: xrblocks-uiextensions/src/desktop-controls.ts:63
Constructors
Constructor
new DesktopControls(camera: PerspectiveCamera, options: DesktopControlsOptions): DesktopControls;
Defined in: xrblocks-uiextensions/src/desktop-controls.ts:88
Parameters
| Parameter | Type |
|---|---|
camera | PerspectiveCamera |
options | DesktopControlsOptions |
Returns
DesktopControls
Properties
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
options | readonly | LocomotionOptions | undefined | - | xrblocks-uiextensions/src/desktop-controls.ts:65 |
pitch | public | number | 0 | Look-up/down in radians, clamped to just under ±90°. | xrblocks-uiextensions/src/desktop-controls.ts:69 |
state | readonly | LocomotionState | undefined | - | xrblocks-uiextensions/src/desktop-controls.ts:64 |
yaw | public | number | undefined | Heading in radians, about +Y. | xrblocks-uiextensions/src/desktop-controls.ts:67 |
Methods
dispose()
dispose(): void;
Defined in: xrblocks-uiextensions/src/desktop-controls.ts:176
Returns
void
update()
update(delta: number): void;
Defined in: xrblocks-uiextensions/src/desktop-controls.ts:166
Advance movement and write the pose onto the camera.
Parameters
| Parameter | Type |
|---|---|
delta | number |
Returns
void