Well I’m trying to get the information on how much the spring is compressed. Lets say that it have a spring value of 400, how do I know how much force its receiving? Or how much its compressed? Or how much distance it have to travel?
Well I found how to calculate the distance to the ground, and with this I can calculate the compression rate.
var rayHit : RaycastHit;
if (Physics.Raycast(FLSuspenssion.transform.position, Vector3.down, rayHit))
FLrideHeight = rayHit.distance;