I have a known position and I have a heading and distance. What I want to do is calculate a new vector on the heading with a known distance (magnitude) and then I can multiply that vector to project away from my original known position. I have the formulas here to determine the angle and magnitude of an existing vector, but the second vector coords are unknown. I can re-arrange these formulas to determine the new vector from my heading and magnitude, BUT I’m wondering if I’m repeating something that is already baked into a FiveM native or other CfxLua datatypes or functions. Does anyone know if this exists already or do I need to roll my own?

I believe lua54-style resources provide the GLM library.

Sorry is this available already within FiveM or something we import into our resources?

At a glance I’m guessing this is the call I need?
glm.degrees(…)

From reading I’ve been doing I need a unit vector representing a direction based on a heading angle.