Hi Jonny,

I implemented a super basic collision detection for a personal game
project that simply uses a distance to determine if a ship is too
close to a bunch of asteroids. I simply iterate through a vector of
asteroids and do the following check:
_ship.distance( asteroid.position ) < ((_ship.bounds.width +
asteroid.bounds.width) * 0.5)

_ship.bounds is a cube6 in my GameObject class. I wanted to implement
a face intersection detection using a simple cube, but that's beyond
my skill set right now. As it turns out that the distance check works
fine.

You can view the project here: www.wemakedotcoms.com/projects/crapteroids/v0.2/

ath.

Jerome.

Reply via email to