Compare commits
2 commits
88d03f8504
...
22fe0a2a1d
Author | SHA1 | Date | |
---|---|---|---|
|
22fe0a2a1d | ||
|
06e8fed5c9 |
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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