scsale player

This commit is contained in:
Snorre 2025-04-05 17:30:28 +02:00
parent 988cc79888
commit 9eeb2f8963

View file

@ -41,6 +41,7 @@ public partial class Mouth : XRCamera3D
MaxEatWeight += (mass / MaxEatWeight) * EatGrowthFactor;
float WorldScale = 1.0f / MaxEatWeight;
((XROrigin3D)GetParent()).WorldScale = WorldScale;
((Node3D)GetParent()).GlobalScale(new Vector3(WorldScale, WorldScale, WorldScale));
RightHand.Strength = MaxEatWeight;
LeftHand.Strength = MaxEatWeight;
GD.Print("New MaxEatWeight: ", MaxEatWeight);