Browse Source

fix styling in src/orbital_objects.h

main
cinnaboot 3 months ago
parent
commit
c4539124d2
  1. 16
      src/orbital_objects.h

16
src/orbital_objects.h

@ -4,13 +4,8 @@
#include "physics.h" #include "physics.h"
#include "orbital_mechanics.h" #include "orbital_mechanics.h"
// Forward declarations
struct SimulationState;
// ============================================================================
// Rendezvous Types // Rendezvous Types
// ============================================================================
enum RendezvousState { enum RendezvousState {
RENDEZVOUS_NONE, RENDEZVOUS_NONE,
RENDEZVOUS_PLANNING, RENDEZVOUS_PLANNING,
@ -20,7 +15,8 @@ enum RendezvousState {
RENDEZVOUS_FAILED RENDEZVOUS_FAILED
}; };
struct RendezvousTarget { // Active rendezvous target configuration // Represents a spacecraft or probe in the simulation.
struct RendezvousTarget {
int target_index; // Index of target spacecraft/body int target_index; // Index of target spacecraft/body
RendezvousState state; // Current rendezvous state RendezvousState state; // Current rendezvous state
double approach_distance; // Distance to start approach phase (m) double approach_distance; // Distance to start approach phase (m)
@ -30,10 +26,10 @@ struct RendezvousTarget { // Active rendezvous target configuration
bool is_spacecraft_target; // True if target is spacecraft, false if body bool is_spacecraft_target; // True if target is spacecraft, false if body
}; };
// ============================================================================ // Represents a planet, star, moon, or other gravitational body in the
// Celestial Body Structure // simulation. Supports hierarchical orbital mechanics with parent-child
// relationships and sphere of influence calculations.
struct CelestialBody { // Gravitational body in the simulation struct CelestialBody {
char name[64]; char name[64];
double mass; // kg double mass; // kg
double radius; // meters double radius; // meters

Loading…
Cancel
Save