Page 1 of 1

Car run not smooth - what to do ?

Posted: Wed Jun 21, 2006 9:24 am
by blendermen
Hi. Do you know some tutorials how to make a car in irrlicht. I have a mesh of car but if i hit "w" he run but not smooth(from 5 to 10).How i can do smooth mave and rotation. If you have tutorials or somethink what can help me - please -help

Posted: Wed Jun 21, 2006 11:42 am
by gfxstyler
you should search the irrlicht forum for delta-timing.

get the delta time and divide it thru 1000 so its more smooth.
then store the last 20 delta-times in an array and then store the average in a new float (you do that by adding all the array values to one variable and divide the variable thru the number of array elements) - this way you have smooth delta timing which doesnt "jump".

btw: bitplane told me about that method :)