Click or drag to resize

GCMotion Class

Exposes motion sensor information.
Inheritance Hierarchy
SystemObject
  Rewired.Platforms.Apple.GameControllerGCMotion

Namespace: Rewired.Platforms.Apple.GameController
Assemblies:  Rewired_AppleGameController (in Rewired_AppleGameController.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
  Rewired_OSX (in Rewired_OSX.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
Syntax
C#
public sealed class GCMotion

The GCMotion type exposes the following members.

Constructors
 NameDescription
Public methodGCMotionInitializes a new instance of the GCMotion class
Top
Properties
 NameDescription
Public propertyacceleration Acceleration converted to the Unity coordinate system.
Public propertyaccelerationRaw Acceleration as returned by Apple Game Controller Framework.
Public propertyattitude Attitude converted to the Unity coordinate system.
Public propertyattitudeRaw Attitude as returned by Apple Game Controller Framework.
Public propertyeventTimeDelta The time that has elapsed since the previous motion event and the latest motion event.
Public propertygravity Gravity converted to the Unity coordinate system.
Public propertygravityRaw Gravity as returned by Apple Game Controller Framework.
Public propertyhasAttitude Determines whether attitude is available.
Public propertyhasGravityAndUserAcceleration Determines whether gravity and user acceleration are available.
Public propertyhasRotationRate Determines whether rotation rate is available.
Public propertylastEventTimestamp The timestamp of the latest motion event that was received.
Public propertyrotationRate Rotation rate converted to the Unity coordinate system. The value has been converted to degrees per second and multiplied by the time delta from the last motion event.
Public propertyrotationRateRaw Rotation rate as returned by Apple Game Controller Framework.
Public propertysensorsActive Gets and sets whether the motion sensors are active. Check sensorsRequireManualActivation to determine if the motion sensors need to be activated manually.
Public propertysensorsRequireManualActivation Returns true if motion sensors require manual activation to function. If true, set sensorsActive to enable or disable motion sensors.
Public propertyuserAcceleration User acceleration converted to the Unity coordinate system.
Public propertyuserAccelerationRaw User acceleration as returned by Apple Game Controller Framework.
Top
See Also