summaryrefslogtreecommitdiff
path: root/src/components.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components.hpp')
-rw-r--r--src/components.hpp9
1 files changed, 9 insertions, 0 deletions
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 <BulletCollision/CollisionShapes/btCollisionShape.h>
+#include <LinearMath/btDefaultMotionState.h>
+#include <BulletDynamics/Dynamics/btRigidBody.h>
#include <glm/gtc/quaternion.hpp>
#include <vulkan/vulkan_core.h>
@@ -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;
};