only use WorldScale

This commit is contained in:
Snorre 2025-04-05 17:45:20 +02:00
parent 251110012b
commit bcefafb746

View file

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