Sprite Kit's 'didBeginContact' function is not very accurate. What should I do?

前端 未结 1 626
你的背包
你的背包 2021-01-01 04:34

Okay, here\'s the deal: I\'m developing a 2D car game (similar to Hill Climb Racing) in Sprite Kit for iOS. I\'m currently working on dust particles, which show up whenever

相关标签:
1条回答
  • 2021-01-01 05:20

    You can use the allContactedBodies property of your sprite to check current contacts between your wheels and the ground. Polling this may not be as efficient as the event-driven method, but it may be more reliable.

    0 讨论(0)
提交回复
热议问题