log pickup
This commit is contained in:
parent
88d03f8504
commit
06e8fed5c9
|
@ -35,9 +35,13 @@ public partial class XRHand : XRController3D
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GD.Print("Detected body with mass", body.Mass);
|
||||||
|
|
||||||
if (body.Mass > Strength)
|
if (body.Mass > Strength)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
GD.Print("Picked up ", body);
|
||||||
|
|
||||||
PinJoint3D joint = new();
|
PinJoint3D joint = new();
|
||||||
joint.NodeA = GetPathTo(body);
|
joint.NodeA = GetPathTo(body);
|
||||||
joint.NodeB = body.GetPath();
|
joint.NodeB = body.GetPath();
|
||||||
|
|
Loading…
Reference in a new issue