okay... i get

MH.keyX = (key_pressed(17) - key_pressed(31));
MH.keyY = (key_pressed(30) - key_pressed(32));
if (MH.keyX!=0 && MH.keyY!=0) { MH.keyX*=.5; MH.keyY*=.5;}

and

vec_set(temp_vec,vector(MH.keyX*100, MH.keyY*100,-mass*5));
vec_rotate(temp_vec,MH.model.pan);
NewtonBodySetForce(MH.NewtonChar,vectorf(temp_vec.x,temp_vec.y,temp_vec.z));

// damping
NewtonBodySetLinearDamping (MH.NewtonChar, 0.9);

// rotating
NewtonBodySetOmega(MH.NewtonChar, vectorf(0,0,-MH.mouseX*5));



when i'm pressing W, body is going strait ahead... when i'm pressing W and A, body moves ahead-left... when i'm pressing A, body still move somwhere ahead, not left

what it could be?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro