Help? Interpolate / Move

outasiteoutasite Member Posts: 417
edited November -1 in Working with GS (Mac)
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?

Comments

  • outasiteoutasite Member Posts: 417
    WoW easy fix. Went with the moveable route, and made my density of the wall 99999.

    Anyone have a better (more optimal way?)
Sign In or Register to comment.