欢迎来到天天文库
浏览记录
ID:39891212
大小:363.81 KB
页数:7页
时间:2019-07-14
《Unity3D游戏开发之蒙皮布料》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Unity3D游戏开发之蒙皮布料Skinnedclothinthesceneviewandintheinspector.蒙皮布料在场景和检视面板中。The SkinnedCloth componentworkstogetherwiththe SkinnedMeshRenderer tosimulateclothingonacharacter.IfyouhaveananimatedcharacterwhichusestheSkinnedMeshRenderer,youcanaddaSkinnedClothcomponen
2、ttothegameobjectwiththeSkinnedMeshRenderertomakehimappearmorelife-like.JustselecttheGameObjectwiththeSkinnedMeshRender,andaddaSkinnedClothcomponentusing Component->Physics->SkinnedCloth. 蒙皮布料组件与蒙皮网格渲染组件一起模拟角色身上的衣服。如果你的动画角色使用了蒙皮网络渲染,那么你可以为其增加一个蒙皮布料来让其更真实。只需要选择
3、具有蒙皮网络渲染组件的物件,使用Component->Physics->SkinnedCloth操作来增加蒙皮布料。文章出处【狗刨学习网】。 WhattheSkinnedClothcomponentdoes,istotakethevertexoutputfromtheSkinnedMeshRendererandapplyclothingsimulationtothat.TheSkinnedClothcomponenthasasetofper-vertexcoefficients,whichdefinehowf
4、reethesimulatedclothcanmovewithrespecttotheskinnedmesh. 当使用蒙皮布料组件时,它将从蒙皮网格渲染组件中获取顶点,并根据这些顶点来模拟布料。蒙皮布料可以对每个顶点设置参数,这些参数定义模拟布料相对蒙皮移动的自由度。 Thesecoefficientscanbevisuallyeditedusingthesceneviewandtheinspector,whenthegameobjectwiththeSkinnedClothcomponentiss
5、elected.Therearetwoeditingmodes,selectionandvertexpainting.Inselectionmode,youclickonverticesinthesceneviewtoselectthem,andthenedittheircoefficientsintheinspector.Invertexpainingmode,yousetthecoefficientvaluesyouwantintheinspector,enablethe"paint"buttonnexttotho
6、secoefficientsyouwanttochange,andclickontheverticestoapplythevaluestothose. 当你在场景或检视面板中选中了一个带有蒙皮布料组件的对象时,这些参数将被可见的设置。有两种设置方式,选择模式和喷涂模式,在选择模式,你在场景中选择相应的顶点,来设置其参数。在喷涂模式,你设置好参数后,点击对应的paint按钮,然后选择顶点来设置这些参数。 Notethatskinnedclothsimulationisonlydrivenbytheve
7、rticesskinnedbytheSkinnedMeshRenderer,andwillnototherwiseinteractwithanycolliders.ThismakesskinnedclothsimulationmuchfasterthenthefullyphysicalInteractiveClothcomponent,asitdoesnotneedtobesimulatedonthesameframerateandthesamethreadastherestofthephysicssimulation
8、. 记住,蒙皮布料只会被蒙皮网格渲染组件的蒙皮的顶点驱动,而不会和其他碰撞体交互。这使得蒙皮布料比完全的物理交互布料的模拟要快,它不需要像其它物理模拟一样,在同一线程按固定帧率模拟。 Youcandisableorenabletheskinnedclothcomponentatanytimetoturniton
此文档下载收益归作者所有