Documentation Search
Godot Apple Plugins Class

CMAltitudeData

Inherits: RefCounted < Object

A relative altitude / barometric pressure sample from CMAltimeter.

Description

Wraps Apple’s CMAltitudeData. The altitude is reported relative to the point at which updates were started, not absolute sea level — for absolute readings, use CMAltimeter.start_absolute_altitude_updates() and CMAbsoluteAltitudeData.

See Apple’s CMAltitudeData reference.

Tutorials

Properties

float

pressure

float

relative_altitude

float

timestamp


Property Descriptions

float pressure 🔗

  • void set_pressure(value: float)

  • float get_pressure()

Barometric pressure in kilopascals (kPa).


float relative_altitude 🔗

  • void set_relative_altitude(value: float)

  • float get_relative_altitude()

Change in altitude in meters, relative to the point at which updates were started.


float timestamp 🔗

  • void set_timestamp(value: float)

  • float get_timestamp()

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