Collision of bounding box and sphere
Posted: Thu Jan 24, 2008 12:08 am
Hi!
Currently I'm doing a little space game but I ran into a problem:
I have a cube scene node and a sphere scene node (the cube is textured with an image of a spaceship and the sphere is a planet) but how can I check if the cube collides with the sphere?
The bounding box of the sphere is too big for my needs (it can be intersected at the "edges" that are far away from the real sphere)
Thanks in advance for any help
Currently I'm doing a little space game but I ran into a problem:
I have a cube scene node and a sphere scene node (the cube is textured with an image of a spaceship and the sphere is a planet) but how can I check if the cube collides with the sphere?
The bounding box of the sphere is too big for my needs (it can be intersected at the "edges" that are far away from the real sphere)
Thanks in advance for any help