Compare commits

..

2 commits

Author SHA1 Message Date
Snorre 6db9476404 grab radius scales with size 2025-04-05 17:33:40 +02:00
Snorre 2ffb72a69f scale near and far planes with size 2025-04-05 17:32:37 +02:00
2 changed files with 4 additions and 1 deletions

View file

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

View file

@ -17,7 +17,7 @@ public partial class XRHand : XRController3D
{
var query = new PhysicsShapeQueryParameters3D();
var sphere = new SphereShape3D();
sphere.Radius = 0.1f;
sphere.Radius = 0.1f * Scale.X;
query.Shape = sphere;
query.CollideWithBodies = true;
query.CollideWithAreas = false;