Unity游戏开发脚本_砍切物体脚本_C#_水果忍者形式的砍切效果

上传者: 41697242 | 上传时间: 2022-06-17 14:09:57 | 文件大小: 21KB | 文件类型: RAR
导入到Asset后引用: using EzySlice; SlicedHull hull = target.Slice(planePosition, planeNormal); 其中target是你想切的游戏对象,planePosition是作为切面的平面上的一个点,planeNormal是平面法线。这样就可以得到一个可切割对象hull。 然后再根据如下方法为切割后两个部分的hull分别创建切割后的GameObject GameObject upperHull = hull.CreateUpperHull(target); GameObject lowerHull = hull.CreateLowerHull(target); CreateSlicedComponent(upperHull); CreateSlicedComponent(lowerHull); 切割过程就完成了。

文件下载

资源详情

[{"title":"( 21 个子文件 21KB ) Unity游戏开发脚本_砍切物体脚本_C#_水果忍者形式的砍切效果","children":[{"title":"EzySlice","children":[{"title":"SlicerExtensions.cs <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"Slicer.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"SlicerExtensions.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"Framework","children":[{"title":"Plane.cs <span style='color:#111;'> 3.80KB </span>","children":null,"spread":false},{"title":"Triangulator.cs <span style='color:#111;'> 7.12KB </span>","children":null,"spread":false},{"title":"Line.cs <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"Triangle.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"Intersector.cs <span style='color:#111;'> 22.02KB </span>","children":null,"spread":false},{"title":"IntersectionResult.cs <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false},{"title":"Plane.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"Triangulator.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"TextureRegion.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"Triangle.cs <span style='color:#111;'> 10.88KB </span>","children":null,"spread":false},{"title":"TextureRegion.cs <span style='color:#111;'> 4.29KB </span>","children":null,"spread":false},{"title":"IntersectionResult.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"Intersector.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"Line.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false}],"spread":false},{"title":"SlicedHull.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"SlicedHull.cs <span style='color:#111;'> 5.39KB </span>","children":null,"spread":false},{"title":"Slicer.cs <span style='color:#111;'> 18.98KB </span>","children":null,"spread":false},{"title":"Framework.meta <span style='color:#111;'> 172B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明