Page 1 of 1

unicycle

Posted: Fri Nov 08, 2013 7:59 am
by vkreal
Anyone can give some ideas/clues on how to create unicycle with box2d or even better using RUBE?

Thanks!

Re: unicycle

Posted: Fri Nov 08, 2013 8:21 am
by iforce2d
I think you'll have to give a bit more info about what you want. The simplest way would be a fixed rotation body attached to a circle with a wheel or revolute joint, like attached. But I guess you are talking about something more complicated, maybe you want a non-fixed-rotation body and to control the balance with AI or something?

Re: unicycle

Posted: Fri Nov 08, 2013 9:18 pm
by vkreal
Thanks for the fixed rotation sample! It got me started. I am looking for something non-fixed rotation body so the balance can be control like you suggested.


Thanks again!

Re: unicycle

Posted: Sat Nov 09, 2013 5:06 pm
by vkreal
How would you do non-fixed-rotation body? or what joint would you recommend?

Re: unicycle

Posted: Sun Nov 10, 2013 10:17 pm
by iforce2d
You could try applying a torque to the upper body to correct the orientation. These links might help:
http://www.iforce2d.net/b2dtut/rotate-to-angle
http://www.box2d.org/forum/viewtopic.php?f=3&t=1243