12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 2284|回复: 11
打印 上一主题 下一主题

第一视角角色设置详细步骤

[复制链接]

5552

主题

2

听众

8万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
11

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

跳转到指定楼层
楼主
发表于 2011-11-1 15:28:00 |只看该作者 |倒序浏览


           比较具体的一个小教程,对初学者比较用用!
           

           Follow step by step guide below to convert your 3rd Person Shooter Demo from UnityTechnologies to First Person Shooter.
         

            
         



            Move your Camera Near Player's arm and Attach it to Human game object. In my case x is -0.56, y is 1.38 and z is 0.025.
         


            Edit your Shooter Game Camera script as below.
         


           
         


            Edit your Normal Character Fps Script. Remove UpdateFacingDirection() function because the MouseLook script will take place for that. Also remove moveRotationSpeed variable and call to UpdateFacingDirection() function. Your script now looks like this.
         

           
         


           
         


           
         


            Attach MouseLook script to camera and Human game object. Change Axes for camera to  Mouse Y and for Human to Mouse X. You must have standard assets Character Controller package imported into project to have MouseLook script.
         

           
         


           
         


            Change MouseLook script Update() function to LateUpdate() so the movements of the camera will follows work fluid with ShooterGameCamera script.
         


            Chane HeadLookController's Responsiveness variables to 10 so it is better suited for First Person Shooter.
         


            Now we have to fix the problem of camera when we die it is destroyed and our death looks unrealistic. Edit the RagdollInstantiater Script as below.
         


           
         


           
         


            Now we almost complete our setup. Create new camera call it DeathCamera and assign it to RagdollInstantiater Script of Human GameObject. Change DeatCamera's x rotation to 90 so it sees player's head and disable the game object for now.
         


           
         


            Enjoy your new First Person Shooter. Make sure you credit RBSoft and UnityTechnologies if you use this in your game. Modified scripts can be downloaded frombelow.
         

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

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

沙发
发表于 2012-3-9 23:31:10 |只看该作者
呵呵,真得不错哦!!
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

板凳
发表于 2012-5-7 23:24:59 |只看该作者
灌水。。。
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

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

地板
发表于 2012-5-17 23:28:20 |只看该作者
凡系斑竹滴话要听;凡系朋友滴帖要顶
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

5#
发表于 2012-5-27 23:22:28 |只看该作者
好可爱的字,学习了
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

6#
发表于 2012-6-3 23:24:29 |只看该作者
发了那么多,我都不知道该用哪个给你回帖了,呵呵
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

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

7#
发表于 2012-6-22 23:22:11 |只看该作者
跑着去顶朋友滴铁
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

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

8#
发表于 2012-7-19 23:21:51 |只看该作者
佩服,好多阿 ,哈哈
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

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

9#
发表于 2012-10-29 23:29:00 |只看该作者
俺是新人,这厢有礼了!
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

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

10#
发表于 2013-3-8 23:54:25 |只看该作者
我看看就走,你们聊!
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐上一条 /1 下一条

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-5-13 22:45 , Processed in 0.093482 second(s), 30 queries .

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

© 2008-2019 Narkii Inc.

回顶部