17 lines
273 B
C
17 lines
273 B
C
#ifndef OBJECTS_H_
|
|
#define OBJECTS_H_
|
|
#include "vec_utils.h"
|
|
|
|
typedef struct {
|
|
float mass;
|
|
float radius;
|
|
Vector2 position;
|
|
Vector2 speed;
|
|
} mass_body_t;
|
|
|
|
typedef struct universe {
|
|
unsigned int num_bodies;
|
|
mass_body_t *bodies;
|
|
} universe_t;
|
|
#endif // OBJECTS_H_
|