diff options
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); + } + } + +} |