scsale player
This commit is contained in:
parent
988cc79888
commit
9eeb2f8963
|
@ -41,6 +41,7 @@ public partial class Mouth : XRCamera3D
|
||||||
MaxEatWeight += (mass / MaxEatWeight) * EatGrowthFactor;
|
MaxEatWeight += (mass / MaxEatWeight) * EatGrowthFactor;
|
||||||
float WorldScale = 1.0f / MaxEatWeight;
|
float WorldScale = 1.0f / MaxEatWeight;
|
||||||
((XROrigin3D)GetParent()).WorldScale = WorldScale;
|
((XROrigin3D)GetParent()).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