diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-12-21 17:44:03 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-12-23 11:42:23 -0500 |
| commit | fa7fc343a0e444da72938fad58d219cf52228976 (patch) | |
| tree | 24630be0c54f9768a13f32c5970558768e343543 /src/components.hpp | |
| parent | 6fa3b137c74536d2bab77f3309ca5b4c60953fe0 (diff) | |
plugin checkpoint - multiple plugins and collision callbacks
Diffstat (limited to 'src/components.hpp')
| -rw-r--r-- | src/components.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components.hpp b/src/components.hpp index e99481e..86c5727 100644 --- a/src/components.hpp +++ b/src/components.hpp @@ -4,6 +4,7 @@ #include "dynamic-array.hpp" #include "macros.hpp" #include "physics.hpp" +#include "plugins.hpp" #include <BulletDynamics/Dynamics/btRigidBody.h> #include <LinearMath/btDefaultMotionState.h> @@ -65,6 +66,7 @@ struct CompGrBinds { uint32_t instanceCounter = 0; uint32_t instanceBufferMaxCount = 0; VkDeviceSize instanceOffsets = 0; + PkeCallback collisionCallback{}; }; struct InstPos { @@ -84,6 +86,7 @@ struct CompInstance { PhysicsCollision physicsLayer = PhysicsCollision{1}; PhysicsCollision physicsMask = PhysicsCollision{1}; InstBt bt; + PkeCallback collisionCallback{}; bool isNeedingUpdated = false; }; |
