blob: 17fc74618d897e1ab3343c1771466d4a9b96d583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include "maths_types.h"
// 'system' means that it gets called per frame
typedef struct physics_settings {
f32 gravity_strength;
} physics_settings;
typedef struct physics_world {
physics_settings settings;
} physics_world;
physics_world physics_init(physics_settings settings);
void physics_shutdown(physics_world* phys_world);
/** @brief perform one or more simulation steps */
void physics_system_update(physics_world* phys_world, f64 deltatime);
|