Hey guys, hope someone here can help me out with an interesting problem I've been having.
I'm adding coins to this game: http://www.luxahoy.com so that when you fire a cannonball, that cannonball body can collect coins in the scene.
The cannonball is a dynamic circle with bullet set to true. The coins are small circle sensors. With a decent framerate, box2d detects the collision between those 2 bodies no problem, but on slower framerates the bullet body tunnels right through the coins.
Anyone have an idea of how I could maybe leverage ray casting or something like that? Any insight would be greatly appreciated
I'm adding coins to this game: http://www.luxahoy.com so that when you fire a cannonball, that cannonball body can collect coins in the scene.
The cannonball is a dynamic circle with bullet set to true. The coins are small circle sensors. With a decent framerate, box2d detects the collision between those 2 bodies no problem, but on slower framerates the bullet body tunnels right through the coins.
Anyone have an idea of how I could maybe leverage ray casting or something like that? Any insight would be greatly appreciated