Post

Enemies can now enable ragdoll physics and recover when they've stabilized after being shot or hit by an explosion. I wonder if I should make them attempt to balance themselves. #gamedev #indiedev #godot

3 reposts8 likes

Enemies have multiple hurtboxes. When you shoot one, it applies an impulse to the corresponding PhysicalBone3D. When enabling ragdolls, I use PhysicalBoneSimulator3D and tween the influence. And when the velocity of the hips bone stabilizes, I cast a ray downwards and readjust the position.