From 3380bfdb6efbdc6639d0e2b303738e50160acc0a Mon Sep 17 00:00:00 2001 From: copygirl Date: Tue, 10 Dec 2024 12:28:27 +0100 Subject: [PATCH] Track spine and eye bones --- copyMultiplayer.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copyMultiplayer.gd b/copyMultiplayer.gd index 318930b..44ef1d3 100644 --- a/copyMultiplayer.gd +++ b/copyMultiplayer.gd @@ -29,8 +29,10 @@ var accumulative_offset := Vector3( 0.35, 0.0, 0.0) func _ready() -> void: # FIXME: This is just thrown together. Dunno if this is an accurate list. # TODO: Allow specifying additional bones, with the help of a hierachical list of existing bones in the model. - tracked_bones = [ "Hips", "Chest", "UpperChest", "Neck", "Head" ] + tracked_bones = [ "Hips", "Spine", "Chest", "UpperChest", "Neck", "Head" ] for side in [ "Left", "Right" ]: + # Eyes + tracked_bones.append("%sEye" % side) # Legs for bone in [ "UpperLeg", "LowerLeg", "Foot" ]: tracked_bones.append("%s%s" % [ side, bone ])