- Home /
Question by
T_LH · Jan 29, 2017 at 09:36 AM ·
c#physicswheelcollider
Can't change the extremumSlip of a wheel.
I'm simply trying to change the float value of WheelCollider.forwardFriction.extremumSlip at runtime with the following code: WheelColliders [0].forwardFriction.extremumSlip = 0.06f;
But apparently I can't do that as I get this error: error CS1612: Cannot modify a value type return value of 'UnityEngine.WheelCollider.forwardFriction'. Consider storing the value in a temporary variable. Any help would be appreciated.
Comment
Your answer
Follow this Question
Related Questions
WheelCollider slowing vehicle down at 0 torque 0 Answers
Wheel Collider RPM value is flickering between valid value and undefined. 0 Answers
Multiple Cars not working 1 Answer
WheelCollider is weirdly affected by Solver iteration count 0 Answers
Why does my car re-align after drift into the original direction? 0 Answers