我已经做了一个应用程序,你需要射击一个敌人,但有时子弹穿过敌人。 swift sprite kit game when I shoot on a enemy sometimes the bullet goes trough the enemy, how can I fix this?swift usesPreciseCollisionDetection不起作用?
所以我加了usesPreciseCollisionDetection = true。 但子弹有时仍会穿过敌人。所以我的问题是我做了什么错误或是usesPreciseCollisionDetection不工作?
感谢您阅读我的问题我希望有人能帮助我。
2个物体是否应该碰撞,接触或两者兼而有之? –
我做到了这一点,如果子弹击中敌人,敌人爆炸,子弹被移除 – EPKgames