Update accessibility
This commit is contained in:
parent
c013cf0722
commit
34c45dc39a
@ -280,7 +280,7 @@ namespace Passer.Humanoid {
|
|||||||
|
|
||||||
#region Torque
|
#region Torque
|
||||||
|
|
||||||
protected Vector3 CalculateTorque() {
|
protected virtual Vector3 CalculateTorque() {
|
||||||
Quaternion sollRotation = handTarget.hand.target.transform.rotation * handTarget.hand.target.toBoneRotation;
|
Quaternion sollRotation = handTarget.hand.target.transform.rotation * handTarget.hand.target.toBoneRotation;
|
||||||
Quaternion istRotation = handTarget.hand.bone.transform.rotation;
|
Quaternion istRotation = handTarget.hand.bone.transform.rotation;
|
||||||
Quaternion dRot = sollRotation * Quaternion.Inverse(istRotation);
|
Quaternion dRot = sollRotation * Quaternion.Inverse(istRotation);
|
||||||
@ -295,7 +295,7 @@ namespace Passer.Humanoid {
|
|||||||
return torque;
|
return torque;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Vector3 CalculateWristTorque() {
|
protected virtual Vector3 CalculateWristTorque() {
|
||||||
//Vector3 wristTension = target.GetWristTension();
|
//Vector3 wristTension = target.GetWristTension();
|
||||||
|
|
||||||
// Not stable
|
// Not stable
|
||||||
@ -311,7 +311,7 @@ namespace Passer.Humanoid {
|
|||||||
ApplyTorqueAtPosition(torque, handTarget.hand.bone.transform.position);
|
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))
|
if (float.IsNaN(torque.magnitude))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user