Murl Engine Lua Addon API  Version 1.0 beta
Murl.Input.IGyroscopeDevice

The IGyroscopeDevice interface.

To receive data the device must be activated by IAppConfiguration::SetGyroscopeActive().


Table members

Inherited


Murl.Input.IDevice

Methods


GetAngularVelocityX()

Get the gyroscope angular velocity around the x-axis.

Number GetAngularVelocityX()

Returns
Number The angular velocity around the x-axis in radians per second.

GetAngularVelocityY()

Get the gyroscope angular velocity around the y-axis.

Number GetAngularVelocityY()

Returns
Number The angular velocity around the y-axis in radians per second.

GetAngularVelocityZ()

Get the gyroscope angular velocity around the z-axis.

Number GetAngularVelocityZ()

Returns
Number The angular velocity around the z-axis in radians per second.

GetAngularVelocity()

Get the gyroscope angular velocity axes.

Murl.Math.Vector GetAngularVelocity()

Returns
Murl.Math.Vector The angular velocity axes in radians per second.

GetRawAngularVelocity()

Get the raw gyroscope angular velocity axes. This method is useful to evaluate the absolute device orientation. All other methods reports the values relative to the current screen axis orientation.

Murl.Math.Vector GetRawAngularVelocity()

Returns
Murl.Math.Vector The angular velocity axes in radians per second.