diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-10-20 21:30:40 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-11-15 13:11:07 -0500 |
| commit | b9693565a4ccbf8767ab5fba931f4efa89082c83 (patch) | |
| tree | e1fcc2abc7ac469168b7cb7bf04cc549507f7dd1 /src/components.hpp | |
| parent | 5ec6a1a0e36a4a035c0adcf2993f2c435c59db27 (diff) | |
checkpoint - physics is working but messy
Diffstat (limited to 'src/components.hpp')
| -rw-r--r-- | src/components.hpp | 9 |
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; }; |
