Force update on radius update

This commit is contained in:
SDraw 2022-12-28 10:44:53 +03:00
parent 25969abef9
commit b1b1a324ad
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5

View file

@ -1,8 +1,8 @@
using ABI.CCK.Components;
using ABI_RC.Core.Player;
using ABI_RC.Systems.IK.SubSystems;
using System.Reflection;
using ABI_RC.Systems.MovementSystem;
using System.Reflection;
using UnityEngine;
namespace ml_amt
@ -187,7 +187,7 @@ namespace ml_amt
l_newCenter.y = (l_newHeight + 0.075f * ____avatarHeightFactor) * 0.5f;
Vector3 l_currentCenter = ___controller.center;
if((Mathf.Abs(l_currentHeight - l_newHeight) > (l_currentHeight * 0.05f)) || (Vector3.Distance(l_currentCenter,l_newCenter) > (l_currentHeight * 0.05f)))
if(__0 || (Mathf.Abs(l_currentHeight - l_newHeight) > (l_currentHeight * 0.05f)) || (Vector3.Distance(l_currentCenter, l_newCenter) > (l_currentHeight * 0.05f)))
{
bool l_active = ___controller.enabled;