From b9693565a4ccbf8767ab5fba931f4efa89082c83 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 20 Oct 2023 21:30:40 -0400 Subject: checkpoint - physics is working but messy --- src/components.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/components.hpp') diff --git a/src/components.hpp b/src/components.hpp index 4d52e39..3e7521f 100644 --- a/src/components.hpp +++ b/src/components.hpp @@ -4,6 +4,9 @@ #include "macros.hpp" #include "dynamic-array.hpp" +#include +#include +#include #include #include @@ -63,6 +66,12 @@ struct CompInstance { InstanceHandle instanceHandle = InstanceHandle_MAX; uint64_t index = ECS_UNSET_VAL; InstPos instPos; + struct { + btVector3 localInertia; + btCollisionShape *collisionShape; + btDefaultMotionState defaultMotionState; + btRigidBody *rigidBody; + } bt; bool isNeedingUpdated = false; }; -- cgit v1.2.3