diff options
author | chai <215380520@qq.com> | 2024-03-19 10:12:53 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2024-03-19 10:12:53 +0800 |
commit | 999a454764e91714847f531aee13903bfc31b0a9 (patch) | |
tree | c310c29e6f9121d322c41045b267b68b6076e7c7 /ActiveRagdoll/Assets/TABG/Scripts/Action/Standing.cs | |
parent | fe83481de86efc4890752b4e45b8c190c1e0cfa2 (diff) |
*misc
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Action/Standing.cs')
-rw-r--r-- | ActiveRagdoll/Assets/TABG/Scripts/Action/Standing.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Action/Standing.cs b/ActiveRagdoll/Assets/TABG/Scripts/Action/Standing.cs new file mode 100644 index 0000000..91365a4 --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/Action/Standing.cs @@ -0,0 +1,25 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Rigging.Action +{ + + public class Standing : MonoBehaviour + { + + public Rigidbody[] rigsToLift; //Head, Torso + + public float force; + + private void FixedUpdate() + { + foreach (var rig in rigsToLift) + { + rig.AddForce(Vector3.up * force, ForceMode.Acceleration); + } + } + + } + +} |