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