Better ragdoll

This commit is contained in:
2025-01-28 09:42:09 +01:00
parent 06252cf8d6
commit 4d856842ff
37 changed files with 1986 additions and 56 deletions

View File

@ -19,9 +19,9 @@ func shoot() -> Error:
return ERR_CANT_OPEN
var node: MeshInstance3D = scene.instantiate()
node.init(bullet_start_node.global_position, bullet_end_node.global_position)
var root := get_tree().get_root()
root.add_child(node)
node.init(bullet_start_node.position, bullet_end_node.position)
#var root := get_tree().get_root()
bullet_start_node.add_child(node)
return OK
else:
push_warning("Couldn't generate a bullet trace, no distance node found")