1
Multi Theft Auto Discussion / Re: New Race Mode.
« on: January 18, 2011, 05:50:58 AM »
What is this new race mode you talk about?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Which converter? the one that the mta devs made or welders converter, i use welders since it does the job much better.The mta devs one. But there's at least a map that me and asablic spotted that had that conversion bug, I don't remember the map name though.
-- Calculate the gap between element bounding spheres
function getGapBetweenElements( elemA, elemB )
if not isElement( elemA ) or not isElement( elemB ) then
return false
end
local x,y,z = getElementPosition( elemA )
local distance = getDistanceBetweenPoints3D( x, y, z, getElementPosition( elemB ) )
distance = distance - ( getElementRadius( elemA ) or 0 )
distance = distance - ( getElementRadius( elemB ) or 0 )
return math.max( 0, distance )
end
This will get you the distance between the outer edges of the vehicles bounding spheres, instead of the distance between their centers. This may improve accuracy when you're dealing with vehicles larger than 5 units -- it's a rare occurence, but it's good to be prepared.