diff options
author | chai <215380520@qq.com> | 2024-03-18 17:59:44 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2024-03-18 17:59:44 +0800 |
commit | 974a6e1c9c1415d64d6c0b8f4cace3795a8a7875 (patch) | |
tree | 74bf47f1e60d79a1f8a0601aed53b80b36bf8994 /ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs | |
parent | 1ccf8b51fc199dbefadea717505242f7968f4b3e (diff) |
*misc
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs')
-rw-r--r-- | ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs b/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs new file mode 100644 index 0000000..6c1b070 --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs @@ -0,0 +1,20 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +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); + } + } + +} |