Hitting an object in front instead of the side?

Hello,

I have written some using the physics where I knock over cans by throwing an object at them from the side. Is there any way to knock something down from the front? For example, if I have cans stacks on a box and I have a bb-gun can I knock them down by shooting a bb-gun from in front aiming at them?

Thanks!

Warren

Hi Warren,

So you basically want to simulate a 3D space in 2D? Maybe you could sense when the “bullet” hit the can, then turn it into a sensor so that it drops through the other cans (as if it’s falling in front of it) or place it behind the other cans (in z-index) and have it fall that way. It won’t be a perfect simulation of 3D, but for a casual game, would probably be enough.

Brent

Hi Warren,

So you basically want to simulate a 3D space in 2D? Maybe you could sense when the “bullet” hit the can, then turn it into a sensor so that it drops through the other cans (as if it’s falling in front of it) or place it behind the other cans (in z-index) and have it fall that way. It won’t be a perfect simulation of 3D, but for a casual game, would probably be enough.

Brent