summaryrefslogtreecommitdiff
path: root/src/components.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-11-03 14:58:28 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-11-15 13:16:32 -0500
commit0de2135165afb034a17d3307d2f4e263bcaae0f8 (patch)
tree1d3a32a4a00368e9c954c34134091bdcb85cd5fe /src/components.hpp
parent96e522ecf4e369bfc533db3914c0b06c2512bedd (diff)
buggy - add custom btOverlapFilterCallback
Diffstat (limited to 'src/components.hpp')
-rw-r--r--src/components.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components.hpp b/src/components.hpp
index 0de9592..4223845 100644
--- a/src/components.hpp
+++ b/src/components.hpp
@@ -1,8 +1,9 @@
#ifndef PKE_COMPONENTS_HPP
#define PKE_COMPONENTS_HPP
-#include "macros.hpp"
#include "dynamic-array.hpp"
+#include "macros.hpp"
+#include "physics.hpp"
#include <BulletDynamics/Dynamics/btRigidBody.h>
#include <LinearMath/btDefaultMotionState.h>
@@ -76,6 +77,8 @@ struct CompInstance {
GrBindsHandle grBindsHandle = GrBindsHandle_MAX;
InstanceHandle instanceHandle = InstanceHandle_MAX;
uint64_t index = ECS_UNSET_VAL;
+ PhysicsCollision physicsLayer = PhysicsCollision{1};
+ PhysicsCollision physicsMask = PhysicsCollision{1};
InstBt bt;
bool isNeedingUpdated = false;
};