summaryrefslogtreecommitdiff
path: root/ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs')
-rw-r--r--ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs27
1 files changed, 1 insertions, 26 deletions
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<AnimationHandler>();
rig = GetComponent<Rigidbody>();
stepHandler = base.transform.root.GetComponentInChildren<StepHandler>();
- //holding = base.transform.root.GetComponent<Holding>();
- //death = base.transform.root.GetComponent<PlayerDeath>();
- Hip componentInChildren = base.transform.root.GetComponentInChildren<Hip>();
+ Rigging.BodyPart.Hip componentInChildren = base.transform.root.GetComponentInChildren<Rigging.BodyPart.Hip>();
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();