diff --git a/scripts/XRHand.cs b/scripts/XRHand.cs index 0c78fa1..a892e71 100644 --- a/scripts/XRHand.cs +++ b/scripts/XRHand.cs @@ -61,9 +61,9 @@ public partial class XRHand : XRController3D PinJoint3D joint2 = new(); joint2.NodeB = body.GetPath(); joint2.NodeA = rb.GetPath(); - joints.Add(joint); - body.AddChild(joint); - joint.Position = Vector3.Zero; + joints.Add(joint2); + body.AddChild(joint2); + joint2.Position = Vector3.Zero; } } }