- Home /
Question by
Rotary-Heart · Jan 26, 2014 at 12:52 AM ·
wheelcolliderwheel collidersuspension
Anyway to know amount of spring compressed?
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?
Comment
Best Answer
Answer by Rotary-Heart · Jan 26, 2014 at 02:46 AM
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;
Your answer
Follow this Question
Related Questions
Wheel collider problems 0 Answers
My car simplicity do not work.. 0 Answers
WheelCollider invisible 0 Answers
[NEWBIE]How to destroy a WheelCollider ? (with a script) 1 Answer
How to get suspension or wheels collider with the new 2D unity tools 2 Answers