- Home /
Swing with rigidbody
hello! i'm interested to move a swing with the rigidbody, i still have a swing frame with the pvot to rotate it around, what i'm looking to do is to push it by pressing two button, for example, if i press the up arrow i'll add force from +z to push it forward, and if i press the down arrow i should be able to push it back.
how i should perform it?
thank's you in advance for your help
Answer by rossadamsm · Nov 19, 2018 at 03:20 PM
Hi @mirkojpn I believe what you are looking for is the hingejoint component. Take a look at the documentation here https://docs.unity3d.com/Manual/class-HingeJoint.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612182405im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Walk always on the ground 0 Answers
Distribute terrain in zones 3 Answers
Collision triggers do not work on child gameobject 3 Answers
Problem with jumping in fps game 1 Answer