Get collision info between ray and triangle (points in counter-clockwise winding), as a map with hit, distance, point and normal
ray = {position:[0,5,0], direction:[0,-1,0]} v1 = [-1,0,-1] v2 = [1,0,-1] v3 = [0,0,1] rc = raylib.GetRayCollisionTriangle(ray, v1, v2, v3) if rc.hit then print "Hit triangle at: " + rc.point end if
There was an error while loading. Please reload this page.