Re:Rigs of Rods: free and open source vehicle simulator that...
by Waterluvian on Monday December 26, 2022 @08:58PM
(#34144116)
Is there an in-between? A “plastic body system” where something behaves as a rigid body until a certain threshold or conditions and then behaves as a soft body during that condition, later returning to RB simulation using the new shape and altered parameters?
[ Parent
| on HN ]
Re:Rigs of Rods: free and open source vehicle simulator that...
by colechristensen on Monday December 26, 2022 @09:57PM
(#34144494)
Engineers have been doing this kind of thing for a very long time. Animators just take lots of shortcuts because they can, but we’re probably at the point (if it doesn’t exist already) where you can animate with the actual properties of real materials with different models appropriate for the specific material.
An engineer designing a product can certainly run it through a simulation that accurately predicts elastic and plastic deformation as well as fracture and other failure modes.
Re:Rigs of Rods: free and open source vehicle simulator that...
by meheleventyone on Tuesday December 27, 2022 @04:27AM
(#34147017)
That’s what soft-body tries to encompass. You can’t just freeze and unfreeze a soft-body system to a rigid-body though as you’d end up with odd behaviour and a non-trivial decomposition. How many rigid bodies is this soft body now? How are they constrained relative to one another? And how to decompose the new shape into suitable collision primitives?
Simple mass-spring systems (like this) have issues with really stiff springs and high masses causing unrealistic responses even with a low time step but you can use approaches like XPBD which are stable. Changing the configuration of constraints is what causes the shape change.
Most vehicle sims get really far with just using a rigid-body system and modelling the damage another way. It’s much computationally cheaper, much cheaper in terms of time to setup a vehicle and lets you maintain high fidelity in the driving model which is the bit most players care about.