Artyom888 Posted November 22, 2019 Share Posted November 22, 2019 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( Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now