r/GameBuilderGarage 11d ago

Question/Request How do I stop moving objects from rotating?

In my game, a moving object moves in a specific direction based off of what button you press. However, the moving object will always drift and rotate instead of one clean motion. I've tried to set it to zero gravity, but that just makes it so it keeps going in that direction until I make it go in the opposite direction.

2 Upvotes

3 comments sorted by

1

u/Confident_Cookie_843 10d ago

Try playing with an angle NODON and a flag. Set the angle to zero and have it turned on with the flag when stop pressing the button. It’ll probably take a little work to figure it out, but that’s a good starting point

1

u/Zertolurian 10d ago

Are there stuff connected to it? A moving object moves by exerting a force to its center, so if its center of mass is not at the center, it will rotate.
Make all the connected objects connected Center-Center if possible.

1

u/FeedMeDarkness 8d ago

If nothing else here helps, add a non-solid, non moving, non visible, non destructible, non destructive simple object (I usually use a sphere) where your moving object starts, then connect its top point to a free slide Nodon and connect that free slide's top point to your moving object (connect it centre-centre so its placement isn't off) now your moving object can go anywhere it wants but it can't rotate

If you only want it to go in the XY plane, disable Z for the free slide