Constant velocity

PixelPunPixelPun Member Posts: 324
edited November -1 in Working with GS (Mac)
I have a game where I need the ball to bounce between two walls at a constant velocity... Is there a general rule I can create in the gravity or physic settings so that if it bounces off other things it doesn't slow down... but maintains the constant speed?

I get the effect somewhat just off gravity but sometimes it stops.. maybe there is a way that it can just maintain velocity no matter what directions? Any help would be awesome, thanks!

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You can set an x or y linear velocity and have it change back and forth on collisions with each wall. then leave gravity at 0 so it stays in the same position unless you don't care about that
Sign In or Register to comment.