Skip to main content

Class: DeviceOrientationControls2

Extra-Helpers.DeviceOrientationControls2

Hierarchy

  • SimpleEventDispatcher<"change">

    DeviceOrientationControls2

Implements

Properties

object

object: Object3D<Event, string>

Implementation of

ICameraControls.object

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:25


enabled

enabled: boolean = false

Implementation of

ICameraControls.enabled

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:26


deviceOrientation

Optional deviceOrientation: DeviceOrientationEvent

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:27


screenOrientation

Optional screenOrientation: ScreenOrientation

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:28


lastOrder

lastOrder: EulerOrder = 'XYZ'

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:29


dampingFactor

dampingFactor: number = 0.05

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:32


lastQuaternion

lastQuaternion: Quaternion

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:33

Constructors

constructor

new DeviceOrientationControls2(object)

Parameters

NameType
objectObject3D<Event, string>

Overrides

SimpleEventDispatcher<'change'\>.constructor

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:35

Methods

onDeviceOrientationChangeEvent

onDeviceOrientationChangeEvent(event): void

Parameters

NameType
eventDeviceOrientationEvent

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:56


onScreenOrientationChangeEvent

onScreenOrientationChangeEvent(): void

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:60


connect

connect(): void

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:67


disconnect

disconnect(): void

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:103


update

update(): void

Returns

void

Implementation of

ICameraControls.update

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:117


dispose

dispose(): void

Returns

void

Implementation of

ICameraControls.dispose

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:146


setObjectQuaternion

setObjectQuaternion(alpha, beta, gamma, orient): void

Parameters

NameType
alphanumber
betanumber
gammanumber
orientnumber

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:155