Unity3d相机的旋转

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class CameraRotate : MonoBehaviour {

    public Transform pos; //围绕旋转的坐标点

// Update is called once per frame

void Update () {

        transform.RotateAround(pos.position,pos.up,Time.deltaTime*5);

}

}

你可能感兴趣的:(Unity3d相机的旋转)