Contents

GCMotion

A controller profile that supports orientation and motion.

Declaration

class GCMotion

Overview

The motion controller profile provides attitude and rotation data, as well as acceleration and sensor information. Use this profile to get motion input from a controller that measures acceleration and rotation rate. If the controller’s motion property is a GCMotion object, the controller supports motion.

This illustration shows the direction of the x, y, and z axes of an iPhone when held upright.

[Image]

Topics

Getting the Controller

Receiving a Callback When Input Values Change

Verifying Capabilities

Accessing Attitude and Rotation Data

Accessing Gravity and Acceleration Data

Accessing Sensor Data

Setting Snapshot Values

See Also

Game controller profiles