From 2ffb72a69f9e254d7ff934295cbac9d328aaa5e9 Mon Sep 17 00:00:00 2001 From: Snorre Date: Sat, 5 Apr 2025 17:32:37 +0200 Subject: [PATCH] scale near and far planes with size --- scripts/Mouth.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Mouth.cs b/scripts/Mouth.cs index ed0fdeb..5576daf 100644 --- a/scripts/Mouth.cs +++ b/scripts/Mouth.cs @@ -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; } }