View Full Version : question about detecting a 3d object in a scene.
05-19-2004, 02:25 AM
Hi, can someone please tell me how to find out if one object is close enough to another object in a scene. For example, I have this cube resting at (20,0,15) and I have another object moving toward it. How do I know if the moving object is acutally touching the cube or moving over it? thanks!
05-19-2004, 05:50 AM
Use some bounding volume to describe the objects. Then, simply test if the two volumes intersect. You could start with something simple like a sphere ... very easy to test. Then you could move on to hierarchical bounding spheres, axis-aligned bounding boxes, or oriented bounding boxes.
U do that with Collision detection.
where u are looking for is sphere - plane collision detection. But before u can crasp this concept u should have a good understanding about matrices and vectors.
There are a lot of tutorials out there. But i reccomend that u look into vectors and matrices first.
regards captain geekson
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.