1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-04 13:33:34 +00:00
lovr/src/physics/physics.h

16 lines
347 B
C
Raw Normal View History

2017-05-16 04:59:53 +00:00
#include "util.h"
#include <ode/ode.h>
2017-05-16 05:02:08 +00:00
typedef struct {
Ref ref;
dWorldID id;
} World;
2017-05-16 04:59:53 +00:00
void lovrPhysicsInit();
void lovrPhysicsDestroy();
2017-05-16 05:02:08 +00:00
World* lovrWorldCreate();
void lovrWorldDestroy(const Ref* ref);
2017-05-16 05:03:01 +00:00
void lovrWorldGetGravity(World* world, float* x, float* y, float* z);
void lovrWorldSetGravity(World* world, float x, float y, float z);