Scale object between 2 moving objects
I'm trying to make shock absorber. I have spring joint between 2 cylinders and i want to scale object between them when they get closer and away from each other.
There is spring joint between red and blue cylinders and i want to scale green cylinder.
Like this.
Any ideas how i can do that?
spring.png
(68.5 kB)
spring2.png
(63.2 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612093807im_/https://answers.unity.com/themes/thub/images/avi.jpg)