I'm looking for a method to determine whether a ray collides with triangle and distance to the collision point in 3D.
a method like the code below or something similar
float GetCollisionsoint(Vector3 RayPosition, Vector3 RayDirection, Vector3 a1, Vector3 a2, Vector3 a3)
{
}
thanks in advance!
oh and if you now want to vote me down, please comment on why so I know what I'm doing wrong.