查看: 1844|回复: 4
打印 上一主题 下一主题

第三人称角色控制教程2(下)

[复制链接]

5552

主题

2

听众

8万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
11

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2011-12-8 17:10:02 |只看该作者 |倒序浏览
Animation Cycles

We also need to configure our animations before we can implement the character controller. The character we imported has three animation cycles. If you open it in 3ds max you will see the animations on the timeline, the standing still motion first, then the walk and then the***n cycles. When we imported the character these animations were also imported but we need to tell Unity that there are 3 animations, what frames they start and end at and also give them names so we can reference each animation using the controller script.
The characters animation timeline is laid out as follows:

- Idle (standing) Cycle: Frames 0-180

- Walk Cycle: Frames 200-230

- Run Cycle: Frames 250-274
If your using your own character your cycles will most likely begin and end on different frames and you may have more animation sequences. Anyway, lets set these up:
Click on the character in the Project Panel to reveal its settings in the Inspector, if you scroll down you'll see an FBX Importer section (above the character preview); if you extend these settings you will see the animation sequence options pictured below.

We need to create 3 animation sequences, so click the + to create three entries, name them and set the start and end values as follows:
1. idle (0-180)

2. walk (200-230)

3.***n (250-274)
When you've done that, click "Apply" to apply the sequences. Unity has basically broken the timeline down into 3 seperate sequences (starting and ending on the specified frames) and named them, so we can call each animation by its name using scripts.
Your animation settings should now look like the ones pictured below:

You will notice a blend mode and loop option, you can set the motion blending mode and sequence loops here but we will be doing this using code so you can leave them as their default settings.
With that done we are ready to start implementing the character controller; so in part 3 we will be bringing the character into the scene and applying the controller object.
由 u8  发表
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

315

主题

0

听众

1万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
10878
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2011-12-9 09:11:39 |只看该作者
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

板凳
发表于 2012-3-5 23:19:29 |只看该作者
不会吧,太恐怖了
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2012-9-19 23:18:52 |只看该作者
呵呵,真得不错哦!!
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-10-14 23:26:28 |只看该作者
其实楼主所说的这些,俺支很少用!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-11-28 14:12 , Processed in 0.098323 second(s), 33 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部