only use GlobalScale
This commit is contained in:
parent
bcefafb746
commit
78f3323312
|
@ -40,8 +40,8 @@ public partial class Mouth : XRCamera3D
|
|||
GD.Print("Ate ", mass, "kg");
|
||||
MaxEatWeight += (mass / MaxEatWeight) * EatGrowthFactor;
|
||||
float WorldScale = MaxEatWeight;
|
||||
((XROrigin3D)GetParent()).WorldScale = WorldScale;
|
||||
// ((Node3D)GetParent()).GlobalScale(new Vector3(WorldScale, WorldScale, WorldScale));
|
||||
// ((XROrigin3D)GetParent()).WorldScale = WorldScale;
|
||||
((Node3D)GetParent()).GlobalScale(new Vector3(WorldScale, WorldScale, WorldScale));
|
||||
RightHand.Strength = MaxEatWeight;
|
||||
LeftHand.Strength = MaxEatWeight;
|
||||
GD.Print("New MaxEatWeight: ", MaxEatWeight);
|
||||
|
|
Loading…
Reference in a new issue