using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MRCHelpers
{
///
/// Copies the position of a transform every frame
///
public class CopyTransform : MonoBehaviour
{
///
/// The transform to follow
///
[SerializeField]
private Transform m_originalTransform;
///
/// Update
///
void Update()
{
//copy the pose of the other transform each frame
transform.position = m_originalTransform.position;
transform.rotation = m_originalTransform.rotation;
}
}
}