朱峰社區(qū)首頁 朱峰社區(qū)

搜索資源 注冊|登陸

等待

返回 展開菜單
按功能 按軟件

Unity3D游戲制作教程

Unity3D游戲制作教程

包含5節(jié)視頻教程

本系列包含Unity3D介紹、Unity3D導(dǎo)出人物、Unity3D導(dǎo)出場景、Unity3D導(dǎo)出動作、游戲測試最終完成一個簡單的游戲。是一套非常完整的Unity3D游戲制作教程。

關(guān)閉

Unity組件:Ragdoll Wizard 布娃娃向?qū)?/h1>

關(guān)注:2001 留言:0 樓主:hzf32111 發(fā)帖時間:15年11月16日

hzf32111

普通會員

hzf32111

社區(qū)新人:1級

關(guān)注2564人

  • 性別

  • 年齡

    18

  • 積分

    1

  • 登陸

    1

  • 發(fā)帖

    1

  • 留言

    1

  • 作品

    1

間隔線

Unity has a simple wizard that lets you create your own ragdoll in no time. You simply have to drag the different limbs on the respective properties in the wizard. Then select create and Unity will automatically generate all Colliders, Rigidbodies and Joints that make up the Ragdoll for you.

Unity擁有一個簡單的向?qū)Э梢宰屇慵磿r的創(chuàng)建一個屬于自己的布娃娃,你只需簡單的在向?qū)е蟹謩e拖動四肢的各種屬性,然后選擇創(chuàng)建,Unity會自動的生成所有的碰撞、剛體和關(guān)節(jié),它將為你完成這個布娃娃。

Creating the Character 創(chuàng)建一個角色

Ragdolls make use of Skinned Meshes, that is a character mesh rigged up with bones in the 3D modeling application. For this reason, you must build ragdoll characters in a 3D package like Maya or Cinema4D.

布娃娃要利用蒙皮網(wǎng)格制作,它是你在3D建模工具中創(chuàng)建一個帶骨骼的角色模型,因此,你必須在一個3D程序中創(chuàng)建布娃娃角色,如Maya或者Cinema4D。

When you've created you character and rigged it, save the asset normally in your Project Folder. When you switch to Unity, you'll see the character asset file. Select that file and choose Assets->Import Settings... from the menu bar. In the Import Settings dialog, make sure that Generate Meshes is not enabled.

當(dāng)你創(chuàng)建好你的角色并設(shè)置好它,將這個資源正常的保存的你的工程文件夾,當(dāng)你切換到Unity,你將會看到這個角色資源文件,選中這個文件然后在菜單欄選擇Assets->Import Settings...,在導(dǎo)入設(shè)置對話框中,確保Generate Meshes為不可用狀態(tài)

Using the Wizard 使用向?qū)?/h6>

It's not possible to make the actual source asset into a ragdoll. This would require modifying the source asset file, and is therefore impossible. You will make an instance of the character asset into a ragdoll, which can then be saved as a Prefab for re-use.

將當(dāng)前的源文件用到布娃娃中是不可能的,它會修改源文件,所以這是不可能的。你需要創(chuàng)建一個角色資源的實例賦予給布娃娃,這個實例需要可以被保存為可重用的Prefab。

Create an instance of the character by dragging it from the Project View to the Hierarchy View. Expand its Transform Hierarchy by clicking the small arrow to the left of the instance's name in the Hierarchy. Now you are ready to start assigning your ragdoll parts.

從工程視圖拖動角色到層級視圖即可創(chuàng)建一個角色的實例,點擊層級中實例名字左邊的小箭頭展開它的變換層級,現(xiàn)在你就可以準(zhǔn)備開始設(shè)定你的布娃娃的各個部分了。

Open the Ragdoll Wizard by choosing GameObject->Create Other->Ragdoll from the menu bar. You will now see the Wizard itself.

選擇菜單欄中的GameObject->Create Other->Ragdoll打開布娃娃向?qū)。你將會看到向(qū)б暣啊?/p>

The Ragdoll Wizard 布娃娃向?qū)? src=
The Ragdoll Wizard 布娃娃向?qū)?/p>

Assigning parts to the wizard should be self-explanatory. Drag the different Transforms of your character instance to the appropriate property on the wizard. This should be especially easy if you created the character asset yourself.

通過向?qū)Э梢砸荒苛巳坏脑O(shè)定各個部分,將角色實例中不同的變換組件拖動到向?qū)е邢鄳?yīng)的屬性框中,這將使你輕而易舉的創(chuàng)建出自己的角色資源。

When you are done, click the Create Button. Now when you enter Play Mode, you will see your character go limp as a ragdoll.

當(dāng)你完成以后,點擊創(chuàng)建按鈕,然后進入播放模式,你就會看到你的角色想一個布娃娃一樣動了。

The final step is to save the setup ragdoll as a Prefab. Choose Assets->Create->Prefab from the menu bar. You will see a New Prefab appear in the Project View. Rename it to "Ragdoll Prefab". Drag the ragdoll character instance from the Hierarchy on top of the "Ragdoll Prefab". You now have a completely set-up, re-usable ragdoll character to use as much as you like in your game.

最后一步是將這個設(shè)置好的布娃娃保存為一個Prefab,選擇菜單欄中的Assets->Create->Prefab ,你會看到一個新的Prefab出現(xiàn)在你的工程視圖中,將它重命名為"Ragdoll Prefab".從層級中拖動布娃娃角色實例到這個"Ragdoll Prefab"上面,你就制作完成了,你就可以在你的游戲任意中使用這個布娃娃角色了。

贊0 踩0

未知用戶

2005-2024 朱峰社區(qū) 版權(quán)所有 遼ICP備2021001865號-1
2005-2024 ZhuFeng Community All Rights Reserved

VIP

朱峰社區(qū)微信公眾號

回頂部

1.復(fù)制文本發(fā)給您的QQ好友或群、微信等;好友點擊鏈接以后,轉(zhuǎn)發(fā)就成功了。 2.如朋友點擊您的鏈接,您需要需刷新一下才行;同一個好友僅能點擊一次。
購買VIP,觀看所有收費教程。