Compare commits

...

2 commits

Author SHA1 Message Date
Snorre 22fe0a2a1d more logging 2025-04-05 17:51:24 +02:00
Snorre 06e8fed5c9 log pickup 2025-04-05 17:50:40 +02:00
2 changed files with 7 additions and 0 deletions

View file

@ -49,6 +49,9 @@ public partial class Mouth : XRCamera3D
Near = 0.05f * MaxEatWeight; Near = 0.05f * MaxEatWeight;
Far = 4000f * MaxEatWeight; Far = 4000f * MaxEatWeight;
GD.Print("New Near: ", Near);
GD.Print("New Far: ", Far);
} }
} }

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