summaryrefslogtreecommitdiff
path: root/ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2024-04-17 01:23:53 +0800
committerchai <215380520@qq.com>2024-04-17 01:23:53 +0800
commit42d8f6778684f3af761c3355cd5eadce8edba491 (patch)
tree5d312d79fc2e00003e651055045275a8b6726ece /ActiveRagdoll/Assets/TABG/Scripts/Animation/AnimationObject.cs
parent7af1acc694a14570a86b9dc432f3766e0ff9bbe2 (diff)
* run
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();