event.geographic

Type Number
Event heading (compass)
Revision Current Public Release (2017.3135)
Keywords heading, compass, geographic

Overview

Provides the heading in degrees (clockwise) relative to the geographic North Pole, sometimes known as true North.

Example

local function updateCompass( event )
    print( "Compass geographic: " .. event.geographic )
end
 
Runtime:addEventListener( "heading", updateCompass )