Gyroscope Class
Gyroscope object can be used to get the orientation from the device.
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:
-
object
Object3DObject to oriented.
Properties
alpha
Number
Alpha rotation.
beta
Number
Beta rotation.
gamma
Number
Gamma rotation.
orientation
Number
Device orientation.