Help? Interpolate / Move
I know its been covered, but I dont know which posts are most relevant to my situation and need some help.
Think pong... A ball bouncing around on and off moving walls.
At first I had the wall set to moveable and if it was at max SET y velocity to -70, and if it was at min SET y velocity to 70. Then if win = true SET velocity = 0.
But... Once/if a collision occurs, the wall will either stop, slow down, or move in the opposite direction, and the ball will slow down. (Restitution is set to 2 on ball with a max velocity checked on too 200).
Then I decided to go the interpolate route. If self.y = max interpolate to min. If self.y = min interpolate to max. But when win = true the walls keep moving, and interpolate will not stop.
Help?
Think pong... A ball bouncing around on and off moving walls.
At first I had the wall set to moveable and if it was at max SET y velocity to -70, and if it was at min SET y velocity to 70. Then if win = true SET velocity = 0.
But... Once/if a collision occurs, the wall will either stop, slow down, or move in the opposite direction, and the ball will slow down. (Restitution is set to 2 on ball with a max velocity checked on too 200).
Then I decided to go the interpolate route. If self.y = max interpolate to min. If self.y = min interpolate to max. But when win = true the walls keep moving, and interpolate will not stop.
Help?
Comments
Anyone have a better (more optimal way?)