Instance Property

gravity

The gravity acceleration vector expressed in the device's reference frame.

Declaration

var gravity: CMAcceleration { get }

Discussion

The total acceleration of the device is equal to gravity plus the acceleration the user imparts to the device (userAcceleration).

See Also

Getting Acceleration Data

var userAcceleration: CMAcceleration

The acceleration that the user is giving to the device.