Files
wow-weakauras/Meta/api/GetPlayerFacing.lua
2024-11-07 23:12:37 +01:00

5 lines
635 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---@diagnostic disable: missing-return, lowercase-global
---@return number facing
---Returns the player's orientation (heading). Indicates the direction the player model is (normally) facing and in which the player will move if he begins walking forward, not the camera orientation. Value Value is equal to 0 for North and increases counterclockwise. Full 360° is equal to 2π. Example Direction Value Dump North 0 0 North West .25π ~0.78538751602173 West .5π ~1.5707750320435 South π ~3.1415500640870 East 1.5π ~4.7124104499817 North East 1.75π ~5.4977979660034
function GetPlayerFacing() end