only use WorldScale
This commit is contained in:
parent
251110012b
commit
bcefafb746
|
@ -41,7 +41,7 @@ public partial class Mouth : XRCamera3D
|
||||||
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