Page 2 of 2

Posted: Wed Aug 09, 2006 1:36 pm
by Zeuss
no worries, this should just about do it.

dt is the time between 2 frames, this is to keep movement consistant. You dont have to use it, but it is adviseable.

Code: Select all


On Button W Press....


   matrix4 Mat = cam->getRelativeTransformation();

   core::vector3df Forwards   (Mat.M[0], Mat.M[1], Mat.M[2] ); 

   cam->setPosition(cam->getPosition() + (Forwards * dt ));