Gravity Engine 12.0
Unity Asset for Gravity
|
Class to adjust from Unity world with orbit in XZ plane to the physics world where orbits are in XY plane. z y ^ ^ | /y | /z | / ==> | / | / | / |/ |/ +-------—> x +--------—> x. More...
Static Public Member Functions | |
static Vector3d | UnityToPhysics (Vector3d v) |
static Vector3 | UnityToPhysics (Vector3 v) |
static void | UnityToPhysics (ref double[] v) |
static Vector3d | PhysicsToUnity (Vector3d v) |
static Vector3 | PhysicsToUnity (Vector3 v) |
static void | PhysicsToUnity (ref double[] v) |
Class to adjust from Unity world with orbit in XZ plane to the physics world where orbits are in XY plane. z y ^ ^ | /y | /z | / ==> | / | / | / |/ |/ +-------—> x +--------—> x.
Physics (RH) Unity (LH)
Objective is to have orbits with phase=0 on x-axis and inclination 0 in the XZ plane and have the physics positions inside GE match the Unity positions.
This means that code that goes from classical orbital elements needs to adjust it's output using the routines in this class when XZ orbit mode is enabled.