You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
427 B
24 lines
427 B
#ifndef SPACECRAFT_H |
|
#define SPACECRAFT_H |
|
|
|
#include "physics.h" |
|
#include "orbital_mechanics.h" |
|
|
|
struct Spacecraft { |
|
char name[64]; |
|
double mass; |
|
int parent_index; |
|
|
|
// Orbital elements from config |
|
OrbitalElements orbit; |
|
|
|
// Global frame (from origin) |
|
Vec3 global_position; |
|
Vec3 global_velocity; |
|
|
|
// Local frame (relative to parent) |
|
Vec3 local_position; |
|
Vec3 local_velocity; |
|
}; |
|
|
|
#endif
|
|
|