diff --git a/scripts/XRHand.cs b/scripts/XRHand.cs index 7d957ad..43ff0ef 100644 --- a/scripts/XRHand.cs +++ b/scripts/XRHand.cs @@ -35,9 +35,13 @@ public partial class XRHand : XRController3D continue; } + GD.Print("Detected body with mass", body.Mass); + if (body.Mass > Strength) continue; + GD.Print("Picked up ", body); + PinJoint3D joint = new(); joint.NodeA = GetPathTo(body); joint.NodeB = body.GetPath();