
UNITY3D
悟空吃饭饭
这个作者很懒,什么都没留下…
展开
-
UNITY3D中的几种移动方式
1.transform.Translate float speed = 10; //定义速度 transform.Translate(Vector3.forward * speed *Time.deltaTime); //朝向物体的前方前进,每秒前进10米,不乘Time.deltatime为每帧移动10米由于transform.Translate()参数为Vector3原创 2017-11-30 15:39:37 · 1348 阅读 · 0 评论 -
UNITY平滑旋转一定角度
using System.Collections; using System.Collections.Generic; using UnityEngine;public class TEST : MonoBehaviour {private float origionY; //声明初始的Y轴旋转值private Quaternion targetRotation;原创 2017-11-30 17:12:39 · 15644 阅读 · 2 评论 -
UNITY开发中常用的一些API
1.Instantiate 原型:public static Object Instantiate(Object original, Vector3 position, Quaternion rotation); 作用:生成对象实例。可用于新生成子弹/炮弹/物体,也可用于刷新敌人 注: 1)该函数返回值在monodevelop中查看返回值为GameObject,官方api手册中为Object原创 2017-12-01 19:51:08 · 692 阅读 · 0 评论 -
UNITY游戏开发源码
转自http://mp.weixin.qq.com/s?__biz=MzIzOTE3OTY4MQ==&mid=403117808&idx=1&sn=b0e33875ce0a52f844f37772921ea835&scene=18#wechat_redirect以下资源全部为网络搜集所得,仅供学习研究,严谨用于商业行为,请下载后于24小时之内删除。2-1 炉石传说 客户端加服务器端 链接:h转载 2017-12-05 10:57:48 · 13596 阅读 · 7 评论