Main character grab on to a spinning object

Hey everyone. I am currently making a 2d game with 3d graphics. I am trying to make the main character grab onto a spinning cylinder which can then release himself with the hit of a button. He could then either bounce off of objects or grab onto other spinning objects. Here is a flash example of what I am talking about

http://stevepastro.com/blog/PreVis_Inside_1.swf

I am fairly new to unity so this is what I have experimented so far. I use a ball as the main char and was able to do exactly as the example. Not sure if it was the best method, but the idea was that the ball when colliding with the cylinder it would create a hinge joint and release the joint when a button is pressed.

I have then moved on to using a ragdoll and problems began to arise. The doll doesn't connect properly and when it does it becomes very disfigured. The doll seems to work fine as he falls and does whatever ragdolls should. Would it be a better idea to not use a ragdoll? Looking for suggestions on how I should approach this problem. Thanks!

1 Answer

1

Be sure that the anchor point that you use to connect the ragdoll and the ‘asteroid’ is the ‘source’ ragdoll point: basically, you need that all joints of the ragdoll have their connectedbody attribute that leads to the source bone rigidbody.
If you don’t do this, the joints have nothing that connects them to the source of the ragdoll!