Posted: Tue Dec 09, 2008 1:10 am
I really can't get this right, can someone please help, I try to multiply the movement, but it don't work right at all.
Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
rogerborg was posting principle and that is pretty much all you need.I really can't get this right, can someone please help, I try to multiply the movement, but it don't work right at all.
Code: Select all
u32 time = Timer->getTime();
u32 deltaT = time - OldTime;
if(deltaT != 0) OldTime = time;
f32 deltaTS = (f32)deltaT / 1000.0f;
f32 rVelocity = Velocity * deltaTS;