Suggestions needed for point to mesh collision detection,
Members - Reputation: 302
Posted 14 January 2012 - 06:41 AM
I was thinking to to a preliminary point to bounding box test to see if the point intersects it. If it does, than I could do a further collision detection.
How would I go for it? Projecting a ray that intersect each triangle normal? And check if the distance if > or < than 0 ?
Members - Reputation: 647
Posted 15 January 2012 - 04:55 AM
A point is inside a convex polygon mesh if the point is on the negative side of all the face planes.
You could decompose your model into a bunch of convex groups and check those.
The initial bounding box test is a good idea. You may be able to use a hierarchy of them to quickly approach a solution.