当前位置: 首页 > wzjs >正文

优秀手机网站欣赏烟台网络推广公司

优秀手机网站欣赏,烟台网络推广公司,阿里巴巴网站icp编号怎么查,做网站 sql 用哪种第14节 breakable actors 147 destructible meshes a geometry collection is basically a set of static meshes that we get after we fracture a mesh. 几何体集合基本上是我们在断开网格后获得的一组静态网格。 选中要破碎的网格物品,创建集合 可以选择不同的…

第14节 breakable actors

147 destructible meshes

 a geometry collection is basically a set of static meshes that we get after we fracture a mesh. 几何体集合基本上是我们在断开网格后获得的一组静态网格。 

选中要破碎的网格物品,创建集合

可以选择不同的碎裂方式,以及选中已经破碎的碎片再次进行fracture(破碎)

设置enable gravity,  simulation physics和damage threadhold后可以播放查看破碎效果

选中物体,按住end之后可以将物体至于地面



148 field system actor: use field to break destructible

创建一个field system蓝图类

enable cluster有使物品聚集起来的能力,可以取消勾选



149 creating field with weapons: using the weapon to break destructible

可以改为box,capsule在物体破碎之后碎片会旋转,而box这种清空会减轻

createfields的蓝图实现(不在c++中实现,只在c++中声明)

 



150 breakable actor: create an actors that breaks

创建一个c++的actor类

UGeometryCollection是在GeometryCollectionEngine模块下的,需要在build.cs中手动添加这个模块

以c++为基类生成蓝图类

 



151 blueprint native event: functions with c++ and blueprint functionality

Even though this class implements the interface, that function is not exposed to blueprint. 即使此类实现了接口,该函数也不会向 Blueprint 公开。

In fact, if we go into hit interface, we can see that it's right here. 事实上,如果我们进入点击界面,我们可以看到它就在这里。

It's not even a U function, it's just a C++ function. 它甚至不是一个 U 函数,而只是一个 C++ 函数。

Now, we could make it a blueprint implementable event, but that means it would only be implemented 现在,我们可以将其设为 Blueprint 可实施事件,但这意味着它只会被实现

in Blueprint and then we wouldn't be able to have our own C++ functionality triggered as a result of ,然后我们就无法触发我们自己的 C++ 功能,因为

this function being called. this 函数。

So how do we get the best of both worlds? 那么我们如何两全其美呢?

Well, to do that, we could make this function a blueprint. 好吧,要做到这一点,我们可以将这个函数作为一个蓝图。

Native event. Native 事件。

A blueprint. 蓝图。

 这是c++实现的GetHit函数,使用了BlueprintNativeEvent之后,则纯c++实现名改为GetHit_Implementation



152 breaking sounds : playing sound whem we smash a pot

pot之所以会被武器震碎,是因为weapon类上附带了createfield函数增加了一个field立场,而pot是一个BP_Breakable蓝图类实例,其中它的rest collection是一个geometrycollection类,而这个类可以设置特性遇到field力场或其他力后破碎。

 在这里会出现一种情况,武器攻击了其中一个potA,另一个potB被potAde field给连带震碎了,但是只有potA被销毁了,因为是potA与weapon overlap然后被调用了gethit函数销毁。而potB只是被武器上的field震碎(或者被potA的碎片所连带的力所震碎),但weapon并没有与potB发生overlap事件,也就不会调用potB的gethit函数销毁potB,因此需要用函数来检测pot是否完整,不完成就调用销毁函数

http://www.dtcms.com/wzjs/569579.html

相关文章:

  • 北京华夏建设有限公司网站贵阳公司官方网站建设
  • mvc3网站上传到空间杭州旺道企业服务有限公司
  • 学习前端开发的网站列车营销网站怎么做
  • 宝应网站wordpress关键词在哪里
  • 网站编辑电子商务网站运营专员常州哪些网站公司做的好处
  • 2022年一建考试最新消息福州关键词seo
  • 主流网站开发语言徐州市建设工程招标网
  • 长沙优化网站多少钱天津建设工程信息网官方
  • 网站建设的简历范文设计师用什么软件
  • 最好的网站制作公司设计作品网站有哪些
  • 网站建设的 几点建材公司网站建设方案
  • 网站打开慢什么原因呢asp.net mvc 网站开发之美
  • 云南网站搭建搜索引擎推广公司
  • design设计网站亚马逊seo关键词优化软件
  • 广东佛山建网站百度指数热度榜
  • 江苏省城市建设信用手册网站国外建站推广
  • 中国站长站官网广东省中山市网站
  • 安徽省住房和城乡建设部网站网站编写语言什么好
  • 单页淘宝客网站2014年行吗设计网站要包含信息类型
  • 学校网站设计风格与布局建设工程项目
  • 哪个分销平台比较好网站关键词优化方式
  • 案列网站wordpress淘点金组件
  • 河北区做网站公司dw网页设计作业成品源代码
  • 公司外贸网站建设电子商务网站建设规划说明书
  • 鹤壁网站推广公司国际物流公司网站
  • 互联网开网站怎么做网站注销
  • 天马网络 网站建设深圳网站建设公司熊掌号
  • html怎么做网站电脑网站打不开是什么原因造成的
  • 一次备案多个网站crm客户关系管理系统平台
  • 承接网站网站建设成都做app定制