Newer
Older
Plot_On_Reality / Assets / Originals / Scripts / MainMenu / RepositeAxis.cs
t-nagao on 1 Feb 2023 406 bytes first
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RepositeAxis : MonoBehaviour
{
    [SerializeField] GameObject plotSpace;

    public void repositeAxis()
    {
        Camera cam = Camera.main;

        plotSpace.transform.position = cam.transform.position + cam.transform.forward * 5.0f;
        plotSpace.transform.rotation = new Quaternion(0,0,0,0);
    }
}