From 42d8f6778684f3af761c3355cd5eadce8edba491 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Wed, 17 Apr 2024 01:23:53 +0800 Subject: * run --- .../TABG/Scripts/Animation/AnimationObject.cs | 27 +--------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs') diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs b/ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs index b7ef84a..a194cf1 100644 --- a/ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs +++ b/ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs @@ -33,22 +33,13 @@ namespace Rigging.Animations public bool dontAnimateIfHoldingSomething; - //private Holding holding; - - private AnimationHandler animationHandler; - - //private PlayerDeath death; - private float muscleMultiplier = 1f; private void Start() { - animationHandler = base.transform.root.GetComponentInChildren(); rig = GetComponent(); stepHandler = base.transform.root.GetComponentInChildren(); - //holding = base.transform.root.GetComponent(); - //death = base.transform.root.GetComponent(); - Hip componentInChildren = base.transform.root.GetComponentInChildren(); + Rigging.BodyPart.Hip componentInChildren = base.transform.root.GetComponentInChildren(); if ((bool)componentInChildren) { hip = componentInChildren.transform; @@ -59,22 +50,6 @@ namespace Rigging.Animations private void FixedUpdate() { - - return; - //if ((bool)death) - //{ - // if (death.muscleFunction < 0f) - // { - // return; - // } - // muscleMultiplier = death.muscleFunction; - //} - //if ((!holding || !dontAnimateIfHoldingSomething || !holding.heldObject) && animationHandler.animationState < animations.Length) - //{ - // SetMultiplier(); - // AddTorque(); - // AddForce(); - //} SetMultiplier(); AddTorque(); AddForce(); -- cgit v1.1-26-g67d0