- Home /
Swinging movement (WindWaker Like) 3D
I'm trying to create a swinging movement like the type you see in zelda, from first person the player can locate an object (by using a ray from the camera) that is 'swingable' the player will then using a button press cast a rope (in this case a line renderer) to the object and swing in a pendulum type motion provided the player keeps the forward movement button pressed.
Otherwise the player will eventually swing to a stop and has to press forward again forcing the character to 'build up' a swing before it's back to full pendulum again, pressing the jump / rope button again at the top part of the swing will allow the player to detach and let go keeping forward momentum.
Now in theory I know that to attach you can have an empty as an anchor, find the object that the ray has hit, attach a hinge joint to the object and another to the anchor which is a child of the character but I'm not sure if this would work, on top of this I'm not sure of the maths needed to create the rotation / movement I would need.
Any assistance would be great!
Your answer
![](https://koobas.hobune.stream/wayback/20220612062555im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Whip swing script JS Indy Jones Style 0 Answers
How to find the angle of a rotation? 1 Answer
How to limit the motion direction of a GameObject? 1 Answer
How do I determine which Euler Axis of an object will change when the object is rotated? 1 Answer
Flip over an object (smooth transition) 3 Answers