1
General / Re: Car Control Panel(gauges)
« on: March 13, 2015, 09:48:21 pm »
so i have main class named Car and it has speedUp function
Car::speedUp()
{
speed++;// but i want some real formula not a constant values at the start of program.
// speed += acc * dt should do it but i am not able to calculate acc rate and dt.
}
for now i am only able to do speed up one by one when i press the key. i looked other projects topics etc.
but they have constant values at the start of program.
ps: eng is not my native lang if you dont understand pls tell me
Car::speedUp()
{
speed++;// but i want some real formula not a constant values at the start of program.
// speed += acc * dt should do it but i am not able to calculate acc rate and dt.
}
for now i am only able to do speed up one by one when i press the key. i looked other projects topics etc.
but they have constant values at the start of program.
ps: eng is not my native lang if you dont understand pls tell me