Author Topic: [RESOURCE] Blocko measurement functions  (Read 369 times)

First column is function, second column is full conversion, third column is simplified conversion.

Blockland uses units to measure things like velocity and position. There is no set name for these units. I can, however, tell you that 1 unit makes two bricks.

50 bricks = 75 feet


mConvertUnitsToMPH()   * 1.5 * 2 / 5280 * 60 * 60      * 1080 / 5280
mConvertUnitsToKPH()   * 1.5 * 2 / 5280 * 60 * 60 * 1.6093   * 1738.044 / 5280

mConvertKPHToMPH()   / 1.6093
mConvertMPHToKPH()   * 1.6093

mConvertBPSToMPH()   mConvertUnitsToMPH(%) / 2      * 1080 / 5280 / 2
mConvertBPSToKPH()   mConvertUnitsToKPH(%) / 2      * 1738.044 / 5280 / 2

Code: (Torque) [Select]
function mConvertUnitsToMPH(%val)
{
    return %val * 1080 / 5280;
}

function mConvertUnitsToKPH(%val)
{
    return * 1738.044 / 5280;
}

mConvertKPHToMPH(%val)
{
    return %val / 1.6093;
}

mConvertMPHToKPH(%val)
{
    return %val * 1.6093;
}

mConvertBPSToMPH(%val)
{
    return %val * 1080 / 5280 / 2;
}

mConvertBPSToKPH(%val)
{
    return %val * 1738.044 / 5280 / 2;
}


I don't really see the need of these. It has a very limited range of use.

That's just me >>