Inherits from NSObject
Declared in KKRotationRate.h

Overview

Contains the current gyroscope values. The gyroscope is only available on 4th generation iPhone & iPod touch devices and newer, and iPad 2 and newer.

See Apple’s Event Handling Guide for more info: http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/MotionEvents/MotionEvents.html#//apple_ref/doc/uid/TP40009541-CH4-SW1

Tasks

  •   timestamp

    The timeStamp when the gyroscope was last sampled.

    property
  •   x

    Rotation rate in radians per second.

    property
  •   y

    Rotation rate in radians per second.

    property
  •   z

    Rotation rate in radians per second.

    property
  • – reset

    Sets all rotationRate values to 0, including internal states. Call this method after an interruption in your application, for example the pause menu or starting a new level.

  • – setRotationRateWithTimestamp:x:y:z:

Properties

timestamp

The timeStamp when the gyroscope was last sampled.

@property (nonatomic, readonly) NSTimeInterval timestamp

Declared In

KKRotationRate.h

x

Rotation rate in radians per second.

@property (nonatomic, readonly) double x

Declared In

KKRotationRate.h

y

Rotation rate in radians per second.

@property (nonatomic, readonly) double y

Declared In

KKRotationRate.h

z

Rotation rate in radians per second.

@property (nonatomic, readonly) double z

Declared In

KKRotationRate.h

Instance Methods

reset

Sets all rotationRate values to 0, including internal states. Call this method after an interruption in your application, for example the pause menu or starting a new level.

- (void)reset

Declared In

KKRotationRate.h

setRotationRateWithTimestamp:x:y:z: