4 edited tags
| link
3 Add two relevant tags to help others find this question: navmesh and barycentric-coordinates
| link
2 deleted 190 characters in body
source | link

I've been struggling with something for a few days, so I've decided to post a question here because I'm pretty sure someone must have faced and solved this problem already.

I have a mesh of triangles (navigation mesh), and a point in 3d space. This point should be "over" one of the triangles all the timetimes. I'm trying to determine which triangle is the one the point is "over", but I can't quite figure it out.

I have found a way to tell if the point is in the triangle using one of the techniques described here, but I can't quite figure out how to project the point on the triangle (or the plane the triangle is in, for that matter). I've been looking online but I can't find anything helpful.

Does anyone know how to project a point onto a triangle (or plane)?

Also, if someone knows of a better way to test which triangle is the one the point is over, it would be appreciated :-)

Thanks!.

I've been struggling with something for a few days, so I've decided to post a question here because I'm pretty sure someone must have faced and solved this problem already.

I have a mesh of triangles (navigation mesh), and a point in 3d space. This point should be "over" one of the triangles all the time. I'm trying to determine which triangle is the one the point is "over", but I can't quite figure it out.

I have found a way to tell if the point is in the triangle using one of the techniques described here, but I can't quite figure out how to project the point on the triangle (or the plane the triangle is in, for that matter). I've been looking online but I can't find anything helpful.

Does anyone know how to project a point onto a triangle (or plane)?

Also, if someone knows of a better way to test which triangle is the one the point is over, it would be appreciated :-)

Thanks!

I have a mesh of triangles (navigation mesh), and a point in 3d space. This point should be "over" one of the triangles all the times. I'm trying to determine which triangle is the one the point is "over", but I can't quite figure it out.

I have found a way to tell if the point is in the triangle using one of the techniques described here, but I can't quite figure out how to project the point on the triangle (or the plane the triangle is in, for that matter). I've been looking online but I can't find anything helpful.

Does anyone know how to project a point onto a triangle (or plane)?

Also, if someone knows of a better way to test which triangle is the one the point is over, it would be appreciated.

1
source | link