JustInvoke / Randomation-Vehicle-Physics

Vehicle physics system for the Unity engine.
https://justinvoke.com/game-assets/#randomation-vehicle-physics
864 stars 184 forks source link

Added Support for Vehicles weighing over 1000kg. #29

Closed azain47 closed 6 years ago

azain47 commented 6 years ago

Changes on Line No. 150 and Line No. 282 to Line No. 294 . Changed travelVel variable from Local to Global (private) (Line 150) Some basic Damping Math (Line No. 282 to Line No. 294)

azain47 commented 6 years ago

Okay, I've looked through the script and I think I was wrong. When I first asked you about it, the ForceMode was set to Force instead of Acceleration which kind of started the oscillation. I then tried to damp it and then it worked because the ForceMode was set to Acceleration then. It was all a misconception that the suspension cant bear vehicles upto that mass , and I think the change in calculation of force by mass is maybe caused by the Script Execution Order. Well, Anyway, you might close or delete this pull request

JustInvoke commented 6 years ago

I'll just close the pull request, thanks for contributing anyways. Maybe in the future I'll take a look at changing the mass in play mode.