20 lines
454 B
C
20 lines
454 B
C
#ifndef OBJECTS_H_
|
|
#define OBJECTS_H_
|
|
#include "vec_utils.h"
|
|
|
|
typedef struct {
|
|
float mass; // Earth masses.
|
|
float radius; // Earth radii (physical collision radius).
|
|
Vector2 position; // Earth radii.
|
|
Vector2 speed; // Earth radii per simulated second.
|
|
float draw_radius;
|
|
float charge; // Coulombs.
|
|
char name[32];
|
|
} mass_body_t;
|
|
|
|
typedef struct universe {
|
|
unsigned int num_bodies;
|
|
mass_body_t *bodies;
|
|
} universe_t;
|
|
#endif // OBJECTS_H_
|