Gyroscope Class

Module: Input

Gyroscope object can be used to get the orientation from the device.

Item Index

Methods

dispose

()

Dispose the gyroscope controller.

Cleans all events created by this controller.

setObjectQuaternion

(
  • object
)

Sets a object rotation to match the device orientation.

The angles alpha, beta and gamma form a set of intrinsic Tait-Bryan angles of type ZXY

Parameters:

Properties

alpha

Number

Alpha rotation.

beta

Number

Beta rotation.

gamma

Number

Gamma rotation.

orientation

Number

Device orientation.