Is there a way to find out the intersection point between a line and an object of arbitrary geometry?

If there is such a way, is it possible to return the normal of the object surface at the intersection point?
Thanks.

What do you mean by “arbitrary geometry”?

When you raycast and get a hit between a ray and an object, you receive several values - see docs. One of them is hit.face, which has a .normal property.

1 Like

As an example: Wrong normal with raycaster

I meant mesh or object of arbitrary shape. Thanks.

The example is inspiring, thank you prisoner849.

1 Like