I am trying to make a Custom WheelCollider but i have a few problems.
float SuspensionForce = SuspensionSpring * (m_suspensionCompression + m_suspensionCompressionPrev) / 2 + SuspensionDamper * (m_suspensionCompression - m_suspensionCompressionPrev) / Time.fixedDeltaTime;
- Damper cause vibration, High damping = High Vibration
- System never getting stable
- Is there a way to limit max compression?
- Is there a way to sleep rigidbody when its stable? As i know, applying force will wake it up.
Help! What should i do for a realistic Wheel?
m_suspensionCompression unit: meters
SpringForce = SpringCoefficient * compressiondistance; DampingForce = DampingCoefficient * compressionspeed;
Currently compression calculating form raycast hitpoint.