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:26


enabled

enabled: boolean = false

Implementation of

ICameraControls.enabled

Defined in

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


deviceOrientation

Optional deviceOrientation: DeviceOrientationEvent

Defined in

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


screenOrientation

Optional screenOrientation: ScreenOrientation

Defined in

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


lastOrder

lastOrder: EulerOrder = 'XYZ'

Defined in

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


dampingFactor

dampingFactor: number = 0.05

Defined in

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


lastQuaternion

lastQuaternion: Quaternion

Defined in

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

Constructors

constructor

new DeviceOrientationControls2(object)

Parameters

NameType
objectObject3D<Event, string>

Overrides

SimpleEventDispatcher<'change'\>.constructor

Defined in

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

Methods

onDeviceOrientationChangeEvent

onDeviceOrientationChangeEvent(event): void

Parameters

NameType
eventDeviceOrientationEvent

Returns

void

Defined in

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


onScreenOrientationChangeEvent

onScreenOrientationChangeEvent(): void

Returns

void

Defined in

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


connect

connect(): void

Returns

void

Defined in

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


disconnect

disconnect(): void

Returns

void

Defined in

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


update

update(): void

Returns

void

Implementation of

ICameraControls.update

Defined in

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


dispose

dispose(): void

Returns

void

Implementation of

ICameraControls.dispose

Defined in

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


setObjectQuaternion

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

Parameters

NameType
alphanumber
betanumber
gammanumber
orientnumber

Returns

void

Defined in

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