Good day, please tell me!
I would like to display the characteristics of the car when choosing it in a car dealership.
Tell me how I can display such a characteristic as the controllability of a car based on its handling table.
local tableHandling = getVehicleHandling ( vehicle )
function handling( tableHandling )
if type (tableHandling) == "table" then
VehicleInfo.specs = {
speed = tableHandling.maxVelocity /1000, --max speed
acceleration = tableHandling.engineAcceleration /100, -- acceleration
control = (tableHandling.tractionMultiplier + tableHandling.tractionLoss + tableHandling.tractionBias /10) / 5, -- handleability
}
else
return
end
end
So I wrote such a code, but it repents to me that it is not correct in terms of calculating the controllability of a car (not a valid formula). As a result, I need to get a value from 0.1 to 1 in order to display it on a scale in the future. Sorry for my English(