Object scale based on distance? (Say, a spring.)

How do you make an object’s scale change in relation to the distance between it and another object?

I am making a spring in a suspension in a car.

I want it to compress and extend, using its transform and the transform of another object.

1 Answer

1

notice “localScale”

notice “Distance”