Update Main.cs

This commit is contained in:
SDraw 2022-12-31 12:03:52 +00:00 committed by GitHub
parent b6bf52b8a1
commit 192005a35f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ namespace ml_amt
float l_currentHeight = ___controller.height;
Vector3 l_newCenter = ____colliderCenter;
l_newCenter.y = (l_newHeight + 0.075f * ____avatarHeightFactor) * 0.5f;
l_newCenter.y = (l_newHeight + 0.075f) * 0.5f;
Vector3 l_currentCenter = ___controller.center;
if(__0 || (Mathf.Abs(l_currentHeight - l_newHeight) > (l_currentHeight * 0.05f)) || (Vector3.Distance(l_currentCenter, l_newCenter) > (l_currentHeight * 0.05f)))