Unicycle

Hi guys,

I’m currently working on a new game and I was wondering if anyone else tried to build an unicycle before.

I have some difficulties with the wheel and the rest of the body.

Unicycle

If my body/player is bigger than the one in the image and I used a joint to fix the wheel on the main body, how can I make the body remain straight into the air and not fall while my player is moving across?

Any idea will be much appreciated.

Thanks [import]uid: 89239 topic_id: 27448 reply_id: 327448[/import]

You could use a piston joint on the player body and move the anchor of the joint in parallel with the body.

You could have an invisible bar across the screen which sits just below an object near the top of the player body. That object would be attached to the player by a weld joint. That object and the bar would be the only two objects which can collide with each other by use of collision masks. - Think of it like a ballerina on a tricycle holding their arm out and putting their flat hand on the bar which runs along the wall-mirror. [import]uid: 8271 topic_id: 27448 reply_id: 111516[/import]

To add on to horacebury who I secretly watch everything he does. lol jk…

Create a rect that’s vertical that is isSensor. Then create a newCircle and do a joint that connects to the bottom of the rect as a pivot. That’s a stiff ride (lol).

Another method is to create a piston joint, which I find a pain in the ass but is doable.

When the unicycle is going left and right and you want it to angle you’ll have some issue. You could add training wheels that are invisible on each side that are not sensors and make joints to the unicycle itself so if you were tilting the device it would simulate it.

I completely understand what I am talking about, but you may not. I suppose I could whip out a sample for you and show you. Let me know if you want that and I’ll see if my theory is correct or if I just slapped myself in the face!

ng [import]uid: 61600 topic_id: 27448 reply_id: 111537[/import]

You could always just have a timer monitor the rotation value of the body and apply a little force in the right direction when it passes a given threshold, ie: push the rider back up. I would start with very small angles off the vertical and medium force. [import]uid: 8271 topic_id: 27448 reply_id: 111543[/import]

Thanks guys, I’ll try today and see if that works.

I’ll keep you posted!

Cheers! [import]uid: 89239 topic_id: 27448 reply_id: 111615[/import]