diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-03-06 15:22:43 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-03-06 15:22:43 +0100 |
commit | 35e7c375a2f96bd8dffcadc800f7e9d4354217a5 (patch) | |
tree | 862efea304e651142dd4419c6f72a2e912ec5f3e /example | |
parent | acaf96c4930d88ebbabcea809473e623ba361ef9 (diff) | |
download | termgl-35e7c375a2f96bd8dffcadc800f7e9d4354217a5.tar.gz |
Collision update
Changed collision parameters for onCollision fuinctions to pass the
movement delta of moved Object
Diffstat (limited to 'example')
-rw-r--r-- | example/test.cpp | 2 |
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; |