diff --git a/scripts/XRHand.cs b/scripts/XRHand.cs index 43ff0ef..a9066c2 100644 --- a/scripts/XRHand.cs +++ b/scripts/XRHand.cs @@ -44,9 +44,16 @@ public partial class XRHand : XRController3D PinJoint3D joint = new(); joint.NodeA = GetPathTo(body); - joint.NodeB = body.GetPath(); + joint.NodeB = GetPath(); joints.Add(joint); + + PinJoint3D joint2 = new(); + joint2.NodeB = GetPathTo(body); + joint2.NodeA = GetPath(); + joints.Add(joint2); + AddChild(joint); + body.AddChild(joint2); } } }