Gravity Engine 2 9.0
Loading...
Searching...
No Matches
GravityEngine2.GSEarthAtmosphereReentry Class Reference

Unity component to add EarthAtmosphereReentry external acceleration to a GECore body. More...

Inheritance diagram for GravityEngine2.GSEarthAtmosphereReentry:
GravityEngine2.GSExternalAcceleration

Public Member Functions

int AddToGE (int id, GECore ge, GBUnits.Units units)
 Add this EarthAtmosphereReentry external acceleration to a GECore body.
 
string GetConfigurationSummary ()
 Get a summary of the current configuration for debugging purposes.
 
void LogConfiguration ()
 Log the current configuration to the console for debugging.
 

Public Attributes

double coeffDrag = 2.2
 
double crossSectionalArea = 10.0
 
double earthMuSI = 3.986e14
 
double heightSurfaceKm = 6371
 
double inertialMassKg = 1000
 
double timeStepSec = 0.1
 

Detailed Description

Unity component to add EarthAtmosphereReentry external acceleration to a GECore body.

This component demonstrates how to integrate EarthAtmosphereReentry into the Unity scene system. It follows the same pattern as GSEarthAtmosphere but uses the reentry-specific physics model.

The reentry model includes:

  • Atmospheric drag based on exponential density model
  • Self-integrated evolution (handles its own position/velocity updates)
  • Configurable spacecraft parameters (mass, drag coefficient, cross-sectional area)
  • Time step control for accurate reentry simulation

Member Function Documentation

◆ AddToGE()

int GravityEngine2.GSEarthAtmosphereReentry.AddToGE ( int id,
GECore ge,
GBUnits::Units units )

Add this EarthAtmosphereReentry external acceleration to a GECore body.

This method creates the necessary data structure and adds it to the GECore as a self-integrated external acceleration.

Parameters
idThe GECore body ID to add the acceleration to
geThe GECore instance
unitsThe units system being used
Returns
The external acceleration ID, or -1 if failed

Implements GravityEngine2.GSExternalAcceleration.

◆ GetConfigurationSummary()

string GravityEngine2.GSEarthAtmosphereReentry.GetConfigurationSummary ( )

Get a summary of the current configuration for debugging purposes.

Returns
A string describing the current configuration

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