summaryrefslogtreecommitdiff
path: root/src/physics.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-10-31 12:46:09 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-11-15 13:13:25 -0500
commitf2c808b1235b9d76e4d4753c025f404e7736ca3c (patch)
tree34100f4a05d6feb40474c50f1d3539611b0016ba /src/physics.hpp
parent18e65823663af6e2a1472b66486526a23d5e9c30 (diff)
use model for collision + refactor physics init and rigidbody creation
Diffstat (limited to 'src/physics.hpp')
-rw-r--r--src/physics.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/physics.hpp b/src/physics.hpp
new file mode 100644
index 0000000..3d41ab7
--- /dev/null
+++ b/src/physics.hpp
@@ -0,0 +1,15 @@
+#ifndef PKE_PHYSICS_HPP
+#define PKE_PHYSICS_HPP
+
+#include "memory.hpp"
+
+#include <BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h>
+
+extern MemBucket *MemBkt_Bullet;
+extern btDiscreteDynamicsWorld *BtDynamicsWorld;
+
+void Physics_Init();
+int32_t Physics_Tick(double delta);
+void Physics_Teardown();
+
+#endif /* PKE_PHYSICS_HPP */