Collision problem #661
Replies: 2 comments
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022).
Posted: 2019-04-23 17:25:13
User: pma8444 [] (age: 1335 days 🔥; posts: 16)
My top view tank consists of two entities, because the bottom and the tower should be controllable indepently
The tower is simply moved according the movement of the bottom:
this.tankMovementListener.tankMovement(this.getVelocityX(), this.getVelocityY());
The problem is, when the bottom is colliding with something, the tower does not notice:
https://giphy.com/gifs/gf5LboQR1RqR4mSwcZ
I cannot set the towers' @CollisionInfo collision=true, as tower and bottom then would collide with eachother.
Currently I'm also failing to figure out precisely whether the bottom is colliding and with what and how this affected it's movement.
TLDR; How can I pass the movement of the bottom to the tower, when the bottom is colliding with something?
Beta Was this translation helpful? Give feedback.
All reactions