From 42906830d441ffcca24fba35264644005048e2ca Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Tue, 16 Apr 2024 17:44:27 +0800 Subject: *misc --- .../Assets/TABG/Scripts/FollowRotation.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ActiveRagdoll/Assets/TABG/Scripts/FollowRotation.cs (limited to 'ActiveRagdoll/Assets/TABG/Scripts/FollowRotation.cs') 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 -- cgit v1.1-26-g67d0