Class: DeviceOrientationControls2
Extra-Helpers.DeviceOrientationControls2
Hierarchy
SimpleEventDispatcher
<"change"
>↳
DeviceOrientationControls2
Implements
ICameraControls
<"change"
>
Properties
object
• object: Object3D
<Event
, string
>
Implementation of
Defined in
webgi/src/helpers/threejs/DeviceOrientationControl.ts:25
enabled
• enabled: boolean
= false
Implementation of
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
Name | Type |
---|---|
object | Object3D <Event , string > |
Overrides
SimpleEventDispatcher<'change'\>.constructor
Defined in
webgi/src/helpers/threejs/DeviceOrientationControl.ts:35
Methods
onDeviceOrientationChangeEvent
▸ onDeviceOrientationChangeEvent(event
): void
Parameters
Name | Type |
---|---|
event | DeviceOrientationEvent |
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
Defined in
webgi/src/helpers/threejs/DeviceOrientationControl.ts:117
dispose
▸ dispose(): void
Returns
void
Implementation of
Defined in
webgi/src/helpers/threejs/DeviceOrientationControl.ts:146
setObjectQuaternion
▸ setObjectQuaternion(alpha
, beta
, gamma
, orient
): void
Parameters
Name | Type |
---|---|
alpha | number |
beta | number |
gamma | number |
orient | number |
Returns
void