Instance Property

gravity

The gravity vector, expressed in the controller's reference frame.

Declaration

var gravity: GCAcceleration { get }

Discussion

The total acceleration applied to the controller is equal to the acceleration applied by gravity plus the acceleration applied by the user.

See Also

Reading the Controller’s Motion Data

var hasAttitudeAndRotationRate: Bool

Returns whether the controller can return data for attitude and rotation rate.

var userAcceleration: GCAcceleration

The acceleration that the user is giving to the controller.

var attitude: GCQuaternion

The current attitude of the controller.

var rotationRate: GCRotationRate

The current rotation rate of the controller.