Unity3D最简单的 角色控制代码 Character Control
protected Vector3 move = Vector3.zero;public float
moveSpeed=3f;//速度
protected CharacterController control;//绑定的角色碰撞对象control =
GetComponent<CharacterController> ();
move =new
Vector3(Input.GetAxis("Horizontal"),0,Input.GetAxis("Vertical"));
control.SimpleMove
(move*moveSpeed); 谢谢分享 试试先!
感谢楼主的无私分享! 很不错 楼主是超人 好帖就是要顶 说的非常好 LZ真是人才 很不错 好帖就是要顶
页:
[1]