We should probably create a component to indicate collision. It will need to satisfy the requirements of Cocos' built-in collision system.
I suggest that it dispatch events when collisions occur, and we listen on those when we wish to know about things colliding with other things. I can't remember the collision system API though, so not sure exactly if that's a good idea or not.
We should probably create a component to indicate collision. It will need to satisfy the requirements of Cocos' built-in collision system.
I suggest that it dispatch events when collisions occur, and we listen on those when we wish to know about things colliding with other things. I can't remember the collision system API though, so not sure exactly if that's a good idea or not.