Instance Property

hasAttitudeAndRotationRate

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

Declaration

var hasAttitudeAndRotationRate: Bool { get }

Discussion

Use this property to verify a controller's capabilities before accessing the attitude and rotationRate properties.

See Also

Reading the Controller’s Motion Data

var gravity: GCAcceleration

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

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.