- Home /
Editing joint programmatically?
Is it possible to edit a joint programmatically? I want to edit a spring joint so I can change the spring strength from within a JavaScript file and I have no idea where to start. Thanks in advance!
Comment
Answer by e-bonneville · Aug 03, 2010 at 02:18 PM
Yes. I think SpringJoint.damper
should serve your purpose fairly well. However, rather than giving you a fish, I'm going to give you a fishing rod too. Have you looked at the documentation on the Unity site? It has what you're looking for, every time. Here's a link to the docs, and here's a link to a search for 'spring' in the docs.
Your answer
![](https://koobas.hobune.stream/wayback/20220613070331im_/https://answers.unity.com/themes/thub/images/avi.jpg)