Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
PatchedConicSOI Class Reference

Determine the location of the sphere of influence of body2 with respect to body1. Monitor the position and trigger OnNewInfluencer when the spaceship moves across the sphere of influence boundary. More...

Inheritance diagram for PatchedConicSOI:

Public Member Functions

void FixedUpdate ()
 

Public Attributes

NBody body1
 assumed body1.mass > body2.mass
 
NBody body2
 
NBody spaceship
 object travelling in fields of body1/body2
 
GameObject conicChange
 Object implementing IPatchedConicChange.
 

Detailed Description

Determine the location of the sphere of influence of body2 with respect to body1. Monitor the position and trigger OnNewInfluencer when the spaceship moves across the sphere of influence boundary.

The definition of the sphere of influence is not simply which has more force but it defined as: D (m_2/m_1)^(2/5) where m_1 > m_2 and D is the distance between the bodies

See https://en.wikipedia.org/wiki/Sphere_of_influence_%28astrodynamics%29 and the first reference (Bate et. al.)


The documentation for this class was generated from the following file: