log pickup

This commit is contained in:
Snorre 2025-04-05 17:50:40 +02:00
parent 88d03f8504
commit 06e8fed5c9

View file

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