fixed the joint atually being between the hand and the body

This commit is contained in:
Snorre 2025-04-05 17:58:10 +02:00
parent 68b8b1ce0c
commit 081459a329

View file

@ -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);
}
}
}