特定オブジェクトの周りでカメラが円運動を行い、カメラが常にオブジェクトの方向を向くコードを書いてみましょう。 using UnityEngine; using System.Collections; public class MainCamera : MonoBehaviour { public GameObject target; // オブジェクト public float radius = 15.0f; // オブジェクトからカメラまでの距離(円運動の半径) public float angle = 0.0f; // ラジアン値 public void Start() { target = GameObject.Find("Floor"); // オブジェクトをセット } public void Update() { Vector3 pos = target.transform.po