diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-10-31 12:46:09 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-11-15 13:13:25 -0500 |
| commit | f2c808b1235b9d76e4d4753c025f404e7736ca3c (patch) | |
| tree | 34100f4a05d6feb40474c50f1d3539611b0016ba /src/entities.hpp | |
| parent | 18e65823663af6e2a1472b66486526a23d5e9c30 (diff) | |
use model for collision + refactor physics init and rigidbody creation
Diffstat (limited to 'src/entities.hpp')
| -rw-r--r-- | src/entities.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/entities.hpp b/src/entities.hpp index 4c5b498..f45f7d3 100644 --- a/src/entities.hpp +++ b/src/entities.hpp @@ -9,6 +9,7 @@ #include "memory.hpp" #include "window.hpp" +#include <BulletCollision/CollisionShapes/btCollisionShape.h> #include <vulkan/vulkan_core.h> struct EntityType { @@ -30,6 +31,9 @@ struct EntityType { int16_t AccessorIndexUV = -1; int16_t AccessorIndexIndex = -1; } Importer_GLTF; + struct { + btCollisionShape *shape = nullptr; + } bt; }; extern DynArray<EntityType> GlobalEntityTypes; |
