how to find the speed in mph (or kmph)

unclepauly

26-09-2006 17:16:45

i have apended an overlay to my window and i am outputting the current engine torque, wheel torque and rpm to it - but how do i get the actual speed in normal kilometres per hour? is there an ogrenewt function to do this? i have spotted getVelocity but that return a vector3 - can i calculate the speed from this ?

unclepauly

26-09-2006 20:51:00

ah ha...

m_chassis->getVelocity().length()*3.6