This commit is contained in:
2024-02-27 23:21:44 +01:00
parent ba37eca0c9
commit bfec08ff02
38 changed files with 89 additions and 92 deletions

View File

@ -30,6 +30,7 @@ func _ready():
foot.attachment.bone_name = foot_name
foot.attachment.bone_idx = foot.bone_id
foot.audio.reparent(foot.attachment)
foot.audio.position = Vector3.ZERO
skeleton.add_child(foot.attachment)
feet.append(foot)
@ -62,7 +63,7 @@ func _process(delta: float):
play(foot.audio)
func _physics_process(_delta):
func _physics_process(_delta: float):
var space_state = get_world_3d().direct_space_state
for foot in feet: