Search the Community
Showing results for tags 'physics'.
-
Hey, have you guys seen this? http://www.decarpentier.nl/armed-mine "Suppose a game character needs react to the direct impact of a bullet on its body. Trying to achieve this accurately for all possible impact positions under all possible conditions using only an animation system would require an enormous set of available animations to choose from. Only then, impacts would fit nicely with the any previous pose and activity. Alternatively, the animation system (and possibly other systems, like inverse kinematics) could be used to generate a frame-by-frame pose that acts like a target to drive an actual physically simulated character body towards. This would be a bit like having a virtual puppeteer (the animation system) control a simulated marionette (the simulated character body, or rag doll). Obviously, you could try to set the simulated pose instantly to mimic the target pose, but this would simply hamper and override the physics simulation, causing it to break in various ways. Instead of using infinitely strong marionette strings, it’s better to drive the body by relatively weak virtual springs. This way, the physics simulation always has the final say. For example, the body would normally match the animations closely. But when shot, the body would receive a physical push from the impact. This impact will push the pose away from the target pose, stretching the springs. Consequently, the stretched springs will start to push back towards their rest length, restoring the actual pose to the target pose over the course of a (fraction of a) second." Theres a full article explaining the mechanics, as well as a download link for the the source code. The result is bizarrely interesting. A thing that pushes itself pysically no matter what direction its facing, and reacts in real time to force (impact, bumps in direction). It would be brilliant to have TDM AI reacting more organically to force/damage, specially when hit by arrows, sword blows or thrown objects.