From 35e7c375a2f96bd8dffcadc800f7e9d4354217a5 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 6 Mar 2019 15:22:43 +0100 Subject: Collision update Changed collision parameters for onCollision fuinctions to pass the movement delta of moved Object --- example/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/test.cpp') diff --git a/example/test.cpp b/example/test.cpp index b09e6ec..7759dae 100644 --- a/example/test.cpp +++ b/example/test.cpp @@ -33,7 +33,7 @@ public: drawPoint('Q', _pos, true, _COL_YELLOW); } - virtual bool onCollisionActive(unsigned int _hit, int _passiveObject){ + virtual bool onCollisionActive(sPos _hit, int _passiveObject){ kc++; drawText(std::to_string(kc), {0,0}, _COL_RED); return true; -- cgit v1.2.3