Get collision info between ray and triangle NOTE: The points are expected to be in counter-clockwise winding NOTE: Based on https://en.wikipedia.org/wiki/M%C3%B6ller%E2%80%93Trumbore_intersection_algorithm
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.