Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Anutrix | |
Old Version | Published before Godot 3 was released. |
I want to make a 1 wheeled 2D Vehicle. I started from here. But how to make body stand erect always above the wheel. In 3D, it can be imagined like like a box(body) with ball shaped socket on top of a ball that rolls. But I want it in 2D with physics. So far it is like this but body falls off to left or right:
Here I made player(body)'s collision2D scaled half of sprite on y axis so it rests on circular wheel. It is like self balancing robot. Exactly something like with top half replaced by a square in 2D(mainly) and 3D game.
Is this the correct way to do this or is there a simpler way to do this?