summaryrefslogtreecommitdiff
path: root/ActiveRagdoll/Assets/TABG/Scripts/FollowTransform.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/FollowTransform.cs')
-rw-r--r--ActiveRagdoll/Assets/TABG/Scripts/FollowTransform.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Scripts/FollowTransform.cs b/ActiveRagdoll/Assets/TABG/Scripts/FollowTransform.cs
new file mode 100644
index 0000000..d64ce97
--- /dev/null
+++ b/ActiveRagdoll/Assets/TABG/Scripts/FollowTransform.cs
@@ -0,0 +1,24 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace Rigging
+{
+
+ public class FollowTransform : MonoBehaviour
+ {
+ public Transform target;
+
+ public Vector3 offset;
+
+ private void Start()
+ {
+ }
+
+ private void LateUpdate()
+ {
+ base.transform.position = target.position + offset;
+ }
+ }
+
+}