Collision Detection Update
Patrick Lam | 24 January, 2009 | 16:44
The project started out pretty smoothly. Just looking back at what I’ve done so far, it looks like I’ve done a lot:
- Created flag for models to have collision detection
- Created set/get functions for flag
- Created function for bounding sphere for models
- Returns array of 2: Sphere Position (array of 3), Sphere Radius (float)
- Enable callback to check for collision detection when updating scene
- Performed initial test for collision
- Check flags
- Check for bounding sphere collision with out models with flags on
- Collision – distance of two bounding sphere’s position is less than the sum of the radius of both sphere
