diff --git a/Runtime/HumanoidControl/Scripts/HumanoidControl.cs b/Runtime/HumanoidControl/Scripts/HumanoidControl.cs index 7d859de..3da701a 100644 --- a/Runtime/HumanoidControl/Scripts/HumanoidControl.cs +++ b/Runtime/HumanoidControl/Scripts/HumanoidControl.cs @@ -1327,7 +1327,7 @@ namespace Passer.Humanoid { #region Update - protected void Update() { + protected virtual void Update() { Controllers.Clear(); UpdatePose(); traditionalInput.UpdateGameController(gameController); @@ -1338,7 +1338,7 @@ namespace Passer.Humanoid { UpdatePoseEvent(); } - protected void FixedUpdate() { + protected virtual void FixedUpdate() { DetermineCollision(); CalculateMovement(); CheckBodyPull(); @@ -1352,7 +1352,7 @@ namespace Passer.Humanoid { } - protected void LateUpdate() { + protected virtual void LateUpdate() { PostAnimationCorrection(); @@ -2073,7 +2073,7 @@ namespace Passer.Humanoid { rightUpperLegCollider.center = new Vector3(0, -rightUpperLeg.length / 2, 0); } - private void DetermineCollision() { + protected void DetermineCollision() { if (proximitySpeed) { //float angle = Vector3.Angle(hitNormal, targetVelocity); collided = (triggerEntered && bodyCapsule.radius <= 0.25f);