1) Project the position of the point onto the plane defined by the three points of the triangle.
2) Check if that projected point is within the triangle by summing the areas of the three triangles formed by connecting lines from the projected point to each vertex of the triangle. ( I have another video on this, see below)
3) If the projected point is within the triangle and the distance from the point to the projected point is below a certain threshold value then the point is colliding with the triangular face.
Projecting a point to a plane: • Projecting a Point to a Plane in 3D
Determining if a point lies within a triangle: • Triangle Collision by Area Method
Collision detection in action: • 3D Platformer in p5js
Watch video 3D collision between a point and a triangular face online without registration, duration hours minute second in high quality. This video was added by user morejpeg 15 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,06 once and liked it 9 people.