![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity相机操作
养四只猫的猫叔
Unity,四只猫。
展开
-
unity相机脚本
using UnityEngine;using System.Collections;namespace Gavin{ public class FreeCamera : MonoBehaviour { //旋转变量; private float m_deltX = 0f; private float m_deltY = 0...原创 2018-11-15 11:16:54 · 3203 阅读 · 1 评论 -
拖动鼠标水平旋转物体查看
private Vector3 startPoint; private Vector3 endPoint; private int disToAngle = 5; void Update() { if (Input.GetMouseButtonDown(0)) { startPoint = Input.mo...原创 2018-11-14 16:15:11 · 332 阅读 · 0 评论 -
第一个陀螺仪
最近在做一个仿真项目,不多说太多记录一下这个是别人给的 出处不知道。// ***********************************************************using UnityEngine;/// <summary>/// Gyroscope controller that works with any device orientat...原创 2017-11-09 22:10:51 · 435 阅读 · 0 评论