User:Furion
Hello There ;p
dist() Function
For distance between two object with vec3 position values
function dist(a ,b) ax,ay,az = a[1],a[2],a[3] bx,by,bz = b[1],b[2],b[3] dx = math.abs(bx - ax) dy = math.abs(by - ay) dz = math.abs(bz - az) d = math.sqrt((dx ^ 2) + (dy ^ 2) + (dz ^ 2)) return math.floor(d) / 39.37 end
More stuff coming soon :>