With either using the Intersect Object command or Sparky's collision dll you can determine if a point on one model is inbetween tow points in 3D Space. To check if a point is precisely inside a polygonal object, youd;
- Create a limb or mathematically aquire a point in 3D space that is infront of the user in the direction the user is moving;
- Get the intersection with the user's object starting from the user's position, ending at the limbs position. This gives you the central distance from the middle of the model to the outside at a given point.
- Using this distance, offset the limb appropirately so that its right on the surface of the model.
- Check for intersection with the other objects inbetween the user's coordinates and the limb.
That will give you perfect collision detection for non-boolean objects (objects that dont have holes in them). Ofcourse it isnt quite mathematical, but if you did want to take that further step into doing it mathematically you could obtain the vertex data of the models, get their slopes (angles) in relation to the model's position, and check if one of the model's vertex points is intersecting the normals of the other model through comparing vertex positions/slopes.
However I dont believe there is a way to actually calculate if a point is within a polygonal object mathematically using a given formula.
- RUC'