Get collision info between ray and box
ray = {position:[0,5,0], direction:[0,-1,0]} box = {min:[-1,-1,-1], max:[1,1,1]} rc = raylib.GetRayCollisionBox(ray, box) if rc.hit then print "Hit at distance: " + rc.distance end if
There was an error while loading. Please reload this page.