diff options
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/FollowRotation.cs')
-rw-r--r-- | ActiveRagdoll/Assets/TABG/Scripts/FollowRotation.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Scripts/FollowRotation.cs b/ActiveRagdoll/Assets/TABG/Scripts/FollowRotation.cs new file mode 100644 index 0000000..86b3265 --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/FollowRotation.cs @@ -0,0 +1,22 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Rigging +{ + + public class FollowRotation : MonoBehaviour + { + public Transform target; + + private void Start() + { + } + + private void LateUpdate() + { + base.transform.rotation = target.rotation; + } + } + +}
\ No newline at end of file |