From c4bd28c4e75f50c357b4f01a5cfb2ec0a4888407 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 22 Mar 2023 14:22:22 +0100 Subject: [PATCH] Update accessibility --- Runtime/HumanoidControl/Scripts/HumanoidControl.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);