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