I’m trying to work on a “suspension squeaking” system for my vehicle game.
The way I’d like it to work is when the suspension is >= the target distance, it will play one sound.
And if it’s below the target distance, it will play the other.
Here is an example from a game called BeamNG.drive
What I think I need to do is to find the distance of the suspension, from the Target position, and the resting position, eg, when there is no weight on the wheel colliders. Then I’d just set the volume and play the sound.
I just don’t know how to find where the suspension position is