unicycle

General discussion about Box2D tutorials
Post Reply
vkreal
Posts: 66
Joined: Sun Jan 13, 2013 7:29 pm

unicycle

Post by vkreal »

Anyone can give some ideas/clues on how to create unicycle with box2d or even better using RUBE?

Thanks!
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: unicycle

Post 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?
Attachments
unicycleFixedRotationBody.rube
(4.71 KiB) Downloaded 760 times
vkreal
Posts: 66
Joined: Sun Jan 13, 2013 7:29 pm

Re: unicycle

Post 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!
vkreal
Posts: 66
Joined: Sun Jan 13, 2013 7:29 pm

Re: unicycle

Post by vkreal »

How would you do non-fixed-rotation body? or what joint would you recommend?
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: unicycle

Post 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
Post Reply