summaryrefslogtreecommitdiff
path: root/src/entities.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/entities.hpp
parent18e65823663af6e2a1472b66486526a23d5e9c30 (diff)
use model for collision + refactor physics init and rigidbody creation
Diffstat (limited to 'src/entities.hpp')
-rw-r--r--src/entities.hpp4
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;