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");
|
GD.Print("Ate ", mass, "kg");
|
||||||
MaxEatWeight += (mass / MaxEatWeight) * EatGrowthFactor;
|
MaxEatWeight += (mass / MaxEatWeight) * EatGrowthFactor;
|
||||||
float WorldScale = MaxEatWeight;
|
float WorldScale = MaxEatWeight;
|
||||||
((XROrigin3D)GetParent()).WorldScale = WorldScale;
|
// ((XROrigin3D)GetParent()).WorldScale = WorldScale;
|
||||||
// ((Node3D)GetParent()).GlobalScale(new Vector3(WorldScale, WorldScale, WorldScale));
|
((Node3D)GetParent()).GlobalScale(new Vector3(WorldScale, WorldScale, WorldScale));
|
||||||
RightHand.Strength = MaxEatWeight;
|
RightHand.Strength = MaxEatWeight;
|
||||||
LeftHand.Strength = MaxEatWeight;
|
LeftHand.Strength = MaxEatWeight;
|
||||||
GD.Print("New MaxEatWeight: ", MaxEatWeight);
|
GD.Print("New MaxEatWeight: ", MaxEatWeight);
|
||||||
|
|
Loading…
Reference in a new issue