From 06e8fed5c9c94759821ce6b314ec53e5e186bbee Mon Sep 17 00:00:00 2001 From: Snorre Date: Sat, 5 Apr 2025 17:50:40 +0200 Subject: [PATCH] log pickup --- scripts/XRHand.cs | 4 ++++ 1 file changed, 4 insertions(+) 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();