summaryrefslogtreecommitdiff
path: root/example/test.cpp
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-06 15:22:43 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-06 15:22:43 +0100
commit35e7c375a2f96bd8dffcadc800f7e9d4354217a5 (patch)
tree862efea304e651142dd4419c6f72a2e912ec5f3e /example/test.cpp
parentacaf96c4930d88ebbabcea809473e623ba361ef9 (diff)
downloadtermgl-35e7c375a2f96bd8dffcadc800f7e9d4354217a5.tar.gz
Collision update
Changed collision parameters for onCollision fuinctions to pass the movement delta of moved Object
Diffstat (limited to 'example/test.cpp')
-rw-r--r--example/test.cpp2
1 files changed, 1 insertions, 1 deletions
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;