Contents

setGravity(_:)

Sets the controller’s gravity data.

Declaration

func setGravity(_ gravity: GCAcceleration)

Parameters

  • gravity:

    A gravity acceleration vector from the controller’s reference frame.

See Also

Setting Snapshot Values