Seems a waste to calculate it twice – might simply use the calculated coordinates to place out the ball, later.
Simulating might take a few frames to do, so if there’s a noticeable lag, maybe do a quick-and-dirty calculation first, so the paddle knows which way to start moving.
With the more powerful modern computers, though, that might just be a waste of programming time; better wait and see whether it’s even a problem.
Seems a waste to calculate it twice – might simply use the calculated coordinates to place out the ball, later.
Simulating might take a few frames to do, so if there’s a noticeable lag, maybe do a quick-and-dirty calculation first, so the paddle knows which way to start moving.
With the more powerful modern computers, though, that might just be a waste of programming time; better wait and see whether it’s even a problem.
Comment by Elaborate — March 6, 2020 @ 11:11 am