Gravity Engine  1.5
Unity Asset for Gravity
OrbitUtils Class Reference

Static Public Member Functions

static float HillRadius (GameObject primary, GameObject secondary)
 Calculates the Hill Radius (radius at which the secondary's gravity becomes dominant, when the secondary is in orbit around the primary). More...
 

Member Function Documentation

static float OrbitUtils.HillRadius ( GameObject  primary,
GameObject  secondary 
)
static

Calculates the Hill Radius (radius at which the secondary's gravity becomes dominant, when the secondary is in orbit around the primary).

Returns
The radius.
Parameters
primaryPrimary.
secondarySecondary. In orbit around primary

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