You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anyway it can happen that bullet will not hit static (not moving) robot even if it should.
For example, let say that bullet speed is 10 pixels per tick. If bullet is on pixel 1 and part of the robot is on pixels 3-8, then on next tick bullet will be on pixel 11 without hitting a robot...
The text was updated successfully, but these errors were encountered:
So after one tick bullet just "jumped" over the robot and there is no collision detected. So fix is to check also traveled trajectory of bullet if there is any collision with bullet.
Sorry if I am not clear enough, but I am doing my best :D
Well I am not sure how to explain this ;).
Anyway it can happen that bullet will not hit static (not moving) robot even if it should.
For example, let say that bullet speed is 10 pixels per tick. If bullet is on pixel 1 and part of the robot is on pixels 3-8, then on next tick bullet will be on pixel 11 without hitting a robot...
The text was updated successfully, but these errors were encountered: