Documentation Search
Godot Apple Plugins Class

CMGyroData

Inherits: RefCounted < Object

A single gyroscope sample produced by CMMotionManager.

Description

Wraps Apple’s CMGyroData. Provides the raw rotation rate around each device axis. See Apple’s CMGyroData reference.

Tutorials

Properties

Vector3

rotation_rate

float

timestamp


Property Descriptions

Vector3 rotation_rate 🔗

Rotation rate around each axis in radians per second. Includes bias from gyroscope drift. For a bias-corrected value, use device-motion updates and read CMDeviceMotion.rotation_rate instead.


float timestamp 🔗

  • void set_timestamp(value: float)

  • float get_timestamp()

The time at which the sample was taken, in seconds since device boot.