fixed the joint atually being between the hand and the body
This commit is contained in:
parent
68b8b1ce0c
commit
081459a329
|
@ -44,9 +44,16 @@ public partial class XRHand : XRController3D
|
||||||
|
|
||||||
PinJoint3D joint = new();
|
PinJoint3D joint = new();
|
||||||
joint.NodeA = GetPathTo(body);
|
joint.NodeA = GetPathTo(body);
|
||||||
joint.NodeB = body.GetPath();
|
joint.NodeB = GetPath();
|
||||||
joints.Add(joint);
|
joints.Add(joint);
|
||||||
|
|
||||||
|
PinJoint3D joint2 = new();
|
||||||
|
joint2.NodeB = GetPathTo(body);
|
||||||
|
joint2.NodeA = GetPath();
|
||||||
|
joints.Add(joint2);
|
||||||
|
|
||||||
AddChild(joint);
|
AddChild(joint);
|
||||||
|
body.AddChild(joint2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue