Car Suspension - Getting Contact Depth and Speed From rayCast()
OK! Here is the deal.
As I already told, I obtain the length of the contact ray already. I will not discuss it's obtanation here, it is just rayCast() method with some more math.
Now I do suspension_length - ray_distance.
This returns the contact depth or x value. To get the speed of it I make a property exdepth for my suspension and after the end of frame I store the depth(x) value into it. Than on start of frame I compare them like so: x - exdepth and than I get the contact speed value(Vcontact).
And that's it - issue solved;)