Using springs in custom setups, is it approproate and how to?

DankP3

Active member
I was wondering about adding opsive springs to a custom script on a custom object and using them to maintain that objects local position and apply forces to it. Is this reasonable and would there be particular requirements/advice to the setup?
 
Ok, I am not at pc at the moment, but by memory I did.. Spring spring = new Spring(); then in start spring.Initialize(). That's the core, I have also added on on add force and a interval tick force timer for other purpose. But I'm sure you'll figure what what you need.
 
Thx, I added springs and initialised, but failed to add force (it seemed to do nothing). I'll just dig deeper and look through demo examples to see what I am missing.
 
Top