public class TransformController : MonoBehaviour
{
[SerializeField] private float rotSpeed = 25f;
void Start()
{
}
void Update()
{
transform.RotateAround(new Vector3(5f, 5f, 0f), Vector3.up, rotSpeed * Time.deltaTime);
}
}
public class TransformController : MonoBehaviour
{
[SerializeField] private float rotSpeed = 25f;
public Transform axisTransform;
void Start()
{
}
void Update()
{
transform.RotateAround(axisTransform.transform.position, Vector3.up, rotSpeed * Time.deltaTime);
}
}