您当前的位置: 首页 > 

SpriteKit对于“子弹”物体的模拟

发布时间:2017-05-01 16:40:49 ,浏览量:0

Second, SpriteKit uses a number of optimisations to help its physics simulation work at high speed. These 
objects, and our banana is just such a thing. To be sure 
everything works as intended, we're going to enable the usesPreciseCollisionDetection property for the banana's 
physics body. This works slower, but it's fine for occasional use.

第二,SpriteKit使用一系列的优化措施来帮助物理引擎模拟的高性能。这些优化措施对于小而快速移动的物体模拟的并不好,我们游戏中的香蕉炸弹就是这样的物体。

为了确保一切都工作正常,我们打算开启香蕉炸弹物理对象的usesPreciseCollisionDetection属性。这使得整个游戏引擎会变慢,但偶尔为之还是可以的 ;)

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    110253博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.1639s