Laggy behavior shooting ball on soccer game, maybe wrong design

Yah it is, assuming there’s only one soccer ball at the same time, if you have multiple soccer balls at the same time consider adding them to a table and updating there positions. (But you porbably only have one soccer ball at a given time)

Make sure to add collision detection with ray-casting.

1 Like