0 votes

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:enter image description here
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 likeenter image description here 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?

in Engine by (48 points)

2 Answers

0 votes

I can't really help as I don't have the skills yet but I'll be watching this as it looks like great fun. Best of luck with it.

by (810 points)
0 votes

Character mode prevents rotation, but not sure if will work fine with that setup, the object may need to be more complex, with joints maybe and controlled by custom integrators.


If the game does not use complex physics, the wheel could be just a sprite rotating with the body speed, and the body a capsule in Character mode.

by (7,796 points)

I do want complex physics

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories