2REAL - Behind The Scenes (Crash Physics Development) (Patreon)
Content
Hey Guys, I want to give you some more insights on my work for the new crash physics system for Assetto Corsa. I had the 2.2 TrafficTool release planned for this weekend, but sometimes things don't end up how they've been planned... but this time, it is for a better cause (!).
I had achieved a major breakthrough last week with adding real soft-body physics to the game, instead of the proposes ''single-shot'' deformation.
After working on the single-shot system this entire summer, it was pretty much finished already, however, it needed heavy trade-offs to work with good performance, even though the impact calculations itself were super cheap. It wasn't running perfectly and with every optimization I needed to downgrade the visual result further. Besides performance, it still looked pretty decent, especially in replay in slow-motion, you can see some results of it here:
(parts flying off, glass shattering)
(hanging parts, parts spread effects)
(body & glass crumble, material-type-based shatter and deform effects)
(all above screenshots are of the ''old'' single-shot system, see extended video showcase here)
Everything you have seen so far in screenshots or videos of the crash system was the ''old'' system, which imitated softbody physics pretty well, but it had the needed trade-offs described above and still wasn't running smooth enough. For me this crash system upgrade is only worth it if it does not hurt performance or gameplay at all. With the compatibility for player car, ai-racers and online, a drastic change was necessary.
The Soft-Body Breakthrough
So I tried a few complex experiments and finally succeeded with building the system on a different core structure, with real soft-body physics and little to no impact on performance. The new system is working with real knots & springs, that not only deform much more realistically, but also move dynamically even after the crash.
(above picture shows actual soft-body physics crash)
As this was a core system rebuild for the crash physics, it was needed to rebuild all of the extra features of the old system again from scratch in a different way so it works with the new knots & springs logic. Besides the deformations this meant rebuilding hanging parts / parts fly-off logic, crumble logic, wobble & deform strength and physics tuning, replay integration, rebuilding compatibility with any car and online sync for every server.
All of this rebuilding happened within the past 2 weeks, and I have been working day & night to get everything sorted for this weekend, but it still needs a bit more work and testing.
I know that you care about performance probably the most, so do I, that's why I think this system change was really worth it besides the much better visual result. I hope to have everything sorted within the next days. Everything else listed on the updates preview post is already finished.
Much greets from Malice 💜