
U3D基础
xiaoben_mao
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
U3D 按下“w”键使人物开始运动,放开则停止
1设置好人物Avatar 2创建Animator 3配置好BlendTree:事件参数组件用作动画状态机来实现播放不同的动画剪辑 4添加脚本PlayerMove.cs 5实现当按下w时,人物由站立从走到跑,放开w键时,运动停止回到站立状态 uusing UnityEngine; using System.Collections; public class PlayerMove : MonoBeh原创 2015-03-19 20:21:51 · 5304 阅读 · 0 评论 -
U3D Ray射线的创建和碰撞检测
using UnityEngine; using System.Collections; public class CubeController : MonoBehaviour { // Use this for initialization void Awake () { //创建一条射线 //Ray ray = new Ray (new Ve原创 2015-03-18 21:08:58 · 3535 阅读 · 0 评论 -
U3D 小球跟随鼠标在地上滚动(一)
新建一个plane作为地面Land,一个小球。给小球增加Rigidbody组件,设置一个阻力值Drag,此处我们设为1。 然后给小球增加一个script,此处为moveController.cs using UnityEngine; using System.Collections; public class moveController : MonoBehaviour { public原创 2015-03-18 21:40:03 · 1743 阅读 · 0 评论 -
U3D 小球跟随鼠标在地上移动(二)
using UnityEngine; using System.Collections; public class moveController : MonoBehaviour { public int moveSpeed; Vector3 targetPoint; // Use this for initialization void Awake () { targetPoin原创 2015-03-19 13:03:42 · 1178 阅读 · 0 评论