Closed Nadav-01 closed 5 years ago
In current code, if a projectile is out of bounds it is teleported to inside the bounds. Still needs to make sure clipping doesnt happen if possible.
Way to fix: implement isOverlap and fixOverlap with walls.
Tried to implement; sometimes causes balls to exit boundaries without enough speed to actually do move through the wall. Fix the methods.
Implemented. Didnt see it happen since. Will reopen if it happens again.
if fast enough, objects can clip through walls and leave the playing area. Solution- use prediction code to see the objects will clip through the wall next frame, and if they do, collide early and set the coordinates in the point of predicted collision (not inside the wall).