For performant raycasting, I would recommend to use this plugin: Three-mesh-bvh: A plugin for fast geometry raycasting and spatial queries!
With .firstHitOnly = true
I get the normal of intersected face and find the dot-product of it with raycaster’s ray. If the result is greater then 0, the point is inside.
Example of the using: Sand Nefertiti (three-mesh-bvh)
1 Like