   Sin,Cos Math
  int speed = 2;if(MyXInput.GetKeyDown(DIK_S) == true){TXPos = dtr(MyXCam.GetAngleY()); // Gets the angle and transform the degrees into radiensTXPos =  cos(TXPos) * 2;TZPos = dtr(MyXCam.GetAngleY());// Gets the angle and transform the degrees into radiensTZPos =  sin(TZPos) * 2;MyXCam.move(TXPos,0,TZPos); // this adds to the originol positions}tell me why the cam just keeps flying around i want to move on an angle   
  X = Center + Radius * Sin(Angle)Z = Center + Radius * Cos(Angle)is the basic idea, now u have it right but try this instead[Source]int speed = 2;if(MyXInput.GetKeyDown(DIK_S) == true){MyXCam.x += 2.0f * cos(dtr(MyXCam.GetAngleY()));MyXCam.z += 2.0f * sin(dtr(MyXCam.GetAngleY()));};  nvm that u wrote exactly what i did i tried it without the accessors to put it directly in the vars still he doesn't wantt to walk on an angle i have been trying this for 2 days now pls anybody that moved his mesh before give me some code   ;Quote:Original post by Black Ace...i have been trying this for 2 days now pls anybody that moved his mesh before give me some codeYou might get lucky and have someone give you some code, but that's really not the best way to solve the problem. You'll get much further if you figure out the solution yourself, perhaps with some help from the people on this forum.As for your problem, you're not explaining it very clearly; something more specific than 'just keeps flying around' would be helpful. Also, you might post your dtr() and move() functions, since the source of the problem could be elsewhere than in what you posted. One other place the problem might be is in your view matrix setup code - if this is wrong, your camera movement code could be correct but the visual results would still be off.   ;  i will tell you something about figuring stuff on your own its consists of 3 steps :1. no i will not ask for help this i have to get on my own2. maybe if i look up some stuff mmm3. help me god 4. *u would have probably smashed your monitor or put a bullet throught your head oh well*and i didint ask for the code to use it as it is i just wanted to compare to see what am i doing diffrent/wrong so if someone would be gentle POST SOME CODE   ;  seems what dawidjoubert wrote is the right way, (except he has a speed var and he forgot to use it). If it doesnt work for you maybe the bug is elsewhere... dtr should be:   r = (d*pi)/180.0maybe the camera is moving fine but the rendring is messed up?Iftah.   ;Quote:Original post by Black Acei will tell you something about figuring stuff on your own its consists of 3 steps :1. no i will not ask for help this i have to get on my own2. maybe if i look up some stuff mmm3. help me god 4. *u would have probably smashed your monitor or put a bullet throught your head oh well*and i didint ask for the code to use it as it is i just wanted to compare to see what am i doing diffrent/wrong so if someone would be gentle POST SOME CODEYou seem to be mistaken.  Figuring something out for yourself actually consists of none of those things.Here is how it really works in 4 steps:1. Define your problem in clear, concise terms and think about it for a moment.2. Try working it out on paper, try to remember similar problems you know the solution to.3. Take some of the keywords of your clear definition of the problem and search on google.4. Once you have determined your problem and if you are still not sure how to solve it after trying to work it out yourself then you present your problem to people who may know the answer, or at least where to point you to.  Take their words and go to step 1 with any derivative problems to the solution.5. *Don't kill yourself, your life should be worth living.  If it isn't, do something about it.*Yes, it's perfectly acceptable to ask for help in the process of "figuring something out for yourself", but you've got to define your problem and share that definition.  Reading a book is the equivilant of getting help from someone, it's just a pre-baked repository of information.  If your problem is very specific, there may not be a proper repository easily available and so you ask someone else and their answer becomes reference material.  If there was no help and you had to figure everything out entirely alone without references, nobody would learn anything because the very nature of programming is that we work off the shoulders of other programmers who have solved problems already.Also, a bonus tip: Don't ask for god to help you, he was never very good at programming anyway.Edit: Honestly I don't care about the ratings, but I find it mind boggling that anyone would take this badly.   ;  tell me whats the timedelta in his code