Need help from the math gurus: planes and spheres
This question has to do with collision detection/response. I hope the math gurus here can help me out.
Basically, let’s say I have two or more planes representing the result of a collision test with multiple stationary objects. An example would be the inside tip of a multi-sided cone, but the planes are not necessarily spaced evenly as in the cone example. The moving object I’m trying to reposition is simply represented by a sphere.
My question is: What is the formula to determine the position of the sphere that would result in it just touching all planes? Now to complicate matters, it’s possible that the end position could result in some planes not being touched at all, but this is fine. I’m just saying that the planes are not necessarily placed so that it always will result in all of them being touched at the same time.
Note that the planes are positioned so that they are never parallel to each other. In most cases they would intersect in a single point (like a cone), but not always.
Any ideas?
SS
Actually, I just thought about something...
What if I move each plane forward by the diameter of the sphere (subtract the radius from d), then all I need to do is find the point/line where the planes intersect. Does anyone know how to do that?
SS
What if I move each plane forward by the diameter of the sphere (subtract the radius from d), then all I need to do is find the point/line where the planes intersect. Does anyone know how to do that?
SS
SS
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement