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