如果为true,则Unity会使用额外的Delaunay三角剖分步骤来计算这个多边形碰撞器的范围。这样一来,会提升这个碰撞器的碰撞性能,但是可能会影响这个碰撞器的范围。 如果为false,则Unity不会使用额外的Delaunay三角剖分步骤来计算这个多边形碰撞器的范围。 PolygonCollider2D型对象.CreatePrimitive(int 多边形的边数,Vector2 多边...
▪Tiled2UnityUtility: 在Win32 Utility中使用 凸多边形碰撞器检查框 或者是 通过命令行输入–c | --convex来设置。这将为对所有的Maps优先设置多边形输出。 ▪Tiled Map:在Tiled中给你的Map的属性中添加一个成员变量,定义为Unity : convex设置为true或者 是false;这将会为你的Map中的所有图层优先设置并且会...
if self:checkBox(yellowPoint,barTempArray) then --_director:pause() -- 碰撞了黄色鸟 _director:getScheduler():unscheduleScriptEntry(self.schId); self:boump(yellowPoint,v,barTemp,self.birdlayer.yellowbird); return; elseif self:checkBox(redWordPoint,barTempArray) then -- 碰撞了红色的鸟 --_...
55. if self:checkBox(yellowPoint,barTempArray) then 56. 57. --_director:pause() 58. --碰撞了黄色鸟 59. _director:getScheduler():unscheduleScriptEntry(self.schId); 60. self:boump(yellowPoint,v,barTemp,self.birdlayer.yellowbird); 61. 62. return; 63. elseif self:checkBox(redWordPoint...
这个碰撞器的范围的所有顶点的位置。 PolygonCollider2D型对象.useDelaunayMesh 对应Inspector窗口的Use Delaunay Mesh。 bool型。 如果为true,则Unity会使用额外的Delaunay三角剖分步骤来计算这个多边形碰撞器的范围。这样一来,会提升这个碰撞器的碰撞性能,但是可能会影响这个碰撞器的范围。
这个碰撞器的范围的所有顶点的位置。 PolygonCollider2D型对象.useDelaunayMesh 对应Inspector窗口的Use Delaunay Mesh。 bool型。 如果为true,则Unity会使用额外的Delaunay三角剖分步骤来计算这个多边形碰撞器的范围。这样一来,会提升这个碰撞器的碰撞性能,但是可能会影响这个碰撞器的范围。