oscelt can be used to transform a state vector into orbital elements.
Determine the set of osculating conic orbital elements that corresponds to the state (position, velocity) of a body at some epoch.
This can be useful for obtaining a conic section shape (ellipse, hyperbola) from an object placed by Ephemeris data/SPK, as in the example below.
Or, similarly for TLE Data.
oscelt can also be useful when manipulating an object’s state vector, either directly or via Unreal Engine’s physics system. The example below simulates changing the Moon’s velocity by 1 km/s both prograde and retrograde, and then updates its orbital elements using