- Home /
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!
Answer by The-Arc-Games · Nov 04, 2011 at 08:17 AM
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!
Your answer
Follow this Question
Related Questions
Very Simple Left and Right Movement Script [OR] disable dravity on CharacterController? 2 Answers
Can someone help me with my TPS Controller/Camera? 1 Answer
character controlling script 1 Answer
How to change gravity direction on Character Motor 0 Answers
gravity or others. i don't get it. what i suppose to coding it 1 Answer