rotating two pieces to face each other

Blitz3D Forums/Blitz3D Programming/rotating two pieces to face each other

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have an idea.
the problem is that when the spheres collide, it's before the pieces are perfectly mirrored, no matter how small the spheres are.


First rotate the cube 90 degrees. Then, check for the shpere collision. If the shpere don't collide, then rotate the cube again 90 degrees, and once the cube has been completely rotated, then check again for sphere collision. Theoretically it should work...

Sergio.