Locomotion System unity3d 移动系统开发

Version 0.9.4 - for Unity 2.1 or higher
Locomotion System
unity3d 移动系统开发
[b]【专业iPhone 3d游戏、移动游戏开发:北京贝武易科技公司】[/b]
有疑问请联系我QQ:363596350

这个Locomotion System让你的游戏角色和动物的脚踏在任何地形上。
开发者:Rune Skovbo Johansen

Locomotion System运动系统能自动融合角色的运动关键帧和运动捕捉数据,不管什么地形,确保角色脚踏实地!
我们所需的所有脚本到在Assets > Locomotion System.这个文件夹里。
好,下面是入门教程:
1、 基本场景设置:
让场景里的角色动起来;
2、设置Locomotion System :
3、加入跑步:
我们让角色能走步,能跑;
4、增加更多的动作,让角色更加真实:
这是我们的制作思路。

1、基本场景设置:
我们用到Hero角色,Hero角色在这个目录下Assets > Characters > Hero Artwork > Hero.把角色拖到场景,设定位置position :(0, 0, 0) ,缩放比例scale:(1, 1, 1).

[img]http://dl.iteye.com/upload/attachment/286390/7150a14c-0510-37b3-9a93-5611253532d5.jpg[/img]

:arrow: 你可以用很多种方法来控制角色,这里我们用Character Controller来控制角色。
:arrow: 通过GameObject > Create Other > Cube生成一个地面,带碰撞属性。
:arrow: 给场景增加一个Character Controller组件,把它放到物体中心,用来代替处理角色和物体的碰撞。这里需要先选择角色,然后才能增加该组件。

[img]http://dl.iteye.com/upload/attachment/286392/49d85aae-5498-3c0a-8fda-7928ba86f3bf.jpg[/img]
这里需要调整好Character Controller组件的参数,如下图:

[img]http://dl.iteye.com/upload/attachment/286394/803f00b1-9fc1-3cf2-afea-23d614a01c22.jpg[/img]
默认的情况下,Character Controller组件,能认出资源里的动画,Animation的默认动画是第一个,我们可以调整一个,例如,选择Idle2这个动画,执行play播放一下,我们的角色就默认的采取Idle2这个动作了。我们给场景增加一个光源,那样会亮些。

[img]http://dl.iteye.com/upload/attachment/286396/7a53b671-e824-32fc-8f49-cd8b0650dc46.jpg[/img]

:arrow: 给角色增加一个Normal Character Motor(通用角色驱动)脚本来处理角色的动作,该脚本在(Assets > Character Controller Scripts > NormalCharacterMotor) 。
:arrow: 给角色增加一个Platform Character Controller script(角色平台控制) (脚本路径 Assets > Character Controller Scripts > PlatformCharacterController) 处理角色的输入input.

你可能感兴趣的:(iphone,3d游戏开发,游戏,脚本,QQ)