Class Gyroscope
Gyroscope data of the rotation around the device's three primary axis.
Implements
Inherited Members
Namespace: Evergine.Platform
Assembly: Evergine.Platform.dll
Syntax
public class Gyroscope : IDisposable
Properties
AngularVelocity
Gets the angular velocity vector in radians per second.
Declaration
public Vector3 AngularVelocity { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
The coordinate-system is defined relative to the screen of the device in its default orientation. The axes are not swapped when the device's screen orientation changes. The X axis represents the pitch, the Y axis is vertical and represents the yaw and the Z axis represents the roll.
IsStarted
Gets a value indicating whether the gyroscope sensor has been started.
Declaration
public bool IsStarted { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Dispose()
Declaration
public void Dispose()
Start()
Start monitoring for changes to gyroscope.
Declaration
public void Start()
Stop()
Stop monitoring for changes to gyroscope.
Declaration
public void Stop()