Can't get ragdoll physics to work

Godot Version

v4.5.1.stable.official [f62fdbde1]

Question

I’ve followed a couple of tutorials on setting up ragdoll physics, but just can’t get it to work. I’ve set up my project with Jolt physics (default is also not working) and a custom ragdoll model. I’ve selected the skeleton and clicked on Create Physical Skeleton to create the physics skeleton.

When I call physical_bones_start_simulation() on the skeleton, nothing happens. I would expect the model to collapse, but I’ve tried calling it in different ways and nothing happens. Right now it’s set up to collapse when you press the spacebar, but I’ve also tried to call it in the _ready() method and that also fails.

Am I missing something? How do I get the ragdoll to work?

The project:

physical_bones_start_simulation() needs to be called on the PhysicalBoneSimulator and not on the Skeleton3D.

For example with your current script:

extends Skeleton3D

@onready var physical_bone_simulator_3d: PhysicalBoneSimulator3D = $PhysicalBoneSimulator3D



func _process(delta: float) -> void:
	if Input.is_action_just_pressed("ui_accept"):
		physical_bone_simulator_3d.physical_bones_start_simulation()
1 Like