0 votes
ago by
retagged ago by
Hello, i am making a car racing game and i've got a question: is it possible to dynamically change vehicle's mass through the code without weird shaking of the suspension? Like for example for simulating the fuel consumption or weight loss due to fallen off parts after the crash.

1 Answer

0 votes
ago by
 
Best answer
Yes, it is possible. Simply change the mass of the vehicle's Rigidbody anytime from a script, and the change will have immediate effect.

Weird suspension shaking is caused by the bad design of Unity's WheelCollider, but changing mass works perfectly in Vehicle Physics Pro.
...