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

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属性。这使得整个游戏引擎会变慢,但偶尔为之还是可以的 ;)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值