Im making a 2d segway a body and a wheel and whenever the body wants to fall the wheel goes to that direction to balance it but i dont know how to stop it cause everytime the wheel and the body is in the same x position the momentums force makes it fall so the movement never stops i want to make a function that reduces the speed of the wheel the closer its get to the bodys x position if anyone could help me i would really appreciate that.

Kevinsz123 changed the title to Simulating 2d segway .

what exactly cant you do? you already know what you need to do, so where is the problem?

    kuligs2 cause the power of the momentum forces the body to rotate around the wheel my problem is the law of conservatium of momentum