diff --git a/Runtime/HumanoidControl/Scripts/Physics/HandPhysics.cs b/Runtime/HumanoidControl/Scripts/Physics/HandPhysics.cs index 6a52b64..a809792 100644 --- a/Runtime/HumanoidControl/Scripts/Physics/HandPhysics.cs +++ b/Runtime/HumanoidControl/Scripts/Physics/HandPhysics.cs @@ -280,7 +280,7 @@ namespace Passer.Humanoid { #region Torque - protected Vector3 CalculateTorque() { + protected virtual Vector3 CalculateTorque() { Quaternion sollRotation = handTarget.hand.target.transform.rotation * handTarget.hand.target.toBoneRotation; Quaternion istRotation = handTarget.hand.bone.transform.rotation; Quaternion dRot = sollRotation * Quaternion.Inverse(istRotation); @@ -295,7 +295,7 @@ namespace Passer.Humanoid { return torque; } - protected Vector3 CalculateWristTorque() { + protected virtual Vector3 CalculateWristTorque() { //Vector3 wristTension = target.GetWristTension(); // Not stable @@ -311,7 +311,7 @@ namespace Passer.Humanoid { ApplyTorqueAtPosition(torque, handTarget.hand.bone.transform.position); } - protected void ApplyTorqueAtPosition(Vector3 torque, Vector3 posToApply) { + protected virtual void ApplyTorqueAtPosition(Vector3 torque, Vector3 posToApply) { if (float.IsNaN(torque.magnitude)) return;