PointInMesh()?
Blitz3D Forums/Blitz3D Programming/PointInMesh()?
| ||
Given a closed mesh and a specified point in world space, is it possible to find out if that point is inside the mesh? I need this to be very fast if possible. Thanks |
| ||
If the mesh is convex it is possible and fast (depending on the complexity of the mesh). Try searching for 'point inside convex hull' or something like that :) |
| ||
You can build a proxy convex mesh to surround (or just represent larger areas) of your mesh. Or you can use multiple convex meshes to represent (roughly or accurately) your mesh. Or there are other ways to simply represent your mesh, including spheres. |
| ||
Entitydistance is cool if you want a rough approximation. |