- Home /
fuel compsumation
Hello! I have an instant fuel consumption in litres per 100km. (not MPG) I want calculate how much fuel is consumed at each second. How can I do this? I'm still beginner in unity, and I have difficulties using Time and FPS.
Thanks!
You've specified your fuel consumption in liters per distance, but you are specifying your answer in seconds. So to calculate fuel consumed, you have to calculate the distance traveled by the vehicle each second. You can do the calculation at one second intervals using InvokeRepeating() using one second as the time.
Your answer
Follow this Question
Related Questions
How to do 2 distinctives jumps relative to the time the key spent down? 0 Answers
Animation blending. (two animations, same mesh, same time) 1 Answer
Multiply deltaTime to arrive at point2 in 1.5 sec ? 1 Answer
javascript System time and date? 3 Answers
Movement using Time.deltaTime not working on Fast mac 3 Answers