Satellite dynamics

Hi. I am new to Unreal Engine and inspired to create a simulator of satellite dynamics for my university project. Main point of my project is about visualization of passive stabilization of any near-Earth spacecraft.

There are some minor forces? such as gravitational moment, aerodynamic drag or solar pressure, which affect any object in space. So, main part of project is creating system of integrating and calculating rotational dynamic applied to spacecraft. I’v read some theoretical material, but it is still not clear for me how to implement Quaternions in UE. Can you advice me something to read or maybe similar projects?

Unreal’s rotations are by default Quats internally.

You can convert a X,Y,Z rotator to quats via the kismet library

You can make Quaternions directly to via “Make Quat”

Code wise some extensive examples

As for the forces you won’t find many calculations. You’re going to have to either use a plugin or implement the formulas yourself. It’s first and foremost a game engine not a simulator.

Project Borealis implemented it’s own air drag calculations: