GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Constant velocity

PixelPunPixelPun Posts: 324Member
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 Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    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

    It's not my fault I never learned to take responsibility for anything. ;)

This discussion has been closed.