- Home /
Making a pendulum?
Using hinge joints, how can I make a pendulum (I want to make a bionic commando style swinging effect)? I want to have something like this, where the player is able to shoot out a hook, have it anchor to a part of the level geometry and then swing on it, while being constrained to 2D movement. The swinging does not have to be very complex.
EDIT I have expanded on my question here
Some more information would be great, especially for those who don't know "bionic commando" like me ;). Do you want to have an object that swings around an anchor point? Or do you want to create some kind of rope? Just use the hingejoint on your object and specify the anchor point. Don't forget to add a rigidbody to your object. Short question - short answer. http://answers.unity3d.com/faq
Answer by bowditch · Feb 20, 2011 at 04:56 PM
You might want to check out this video: http://vimeo.com/7886895
It is a good intro to making swinging objects (wrecking ball), but I think you can easily adapt it for your needs. Best of luck!
Answer by r0gerg · May 04, 2016 at 06:21 PM
I created a tutorial with the Euler-Cromer method to simulate a simple pendulum. https://rdgamestudio.wordpress.com/2016/05/04/simple-pendulum-in-unity/
Answer by SosaZero · Feb 20, 2011 at 05:28 PM
make a rigidbody and attach a part of it (with joints) to the axis that you want it to rotate.
Well im not sure im nooob but I think it may work :D
Your answer
Follow this Question
Related Questions
2D 360 degress platformer example needed 0 Answers
Getting a ball to settle between two points. 1 Answer
Create a full circle/chain of hinge joints! 1 Answer
Hinge Joint? Unconstrained. 1 Answer
Make a hinge joint stay firmly in place 4 Answers