   Moving a point in 3d
  Hi Guys, I realise you must get this question ten times a day but I can't find a solution by searching the forum.I have a point at 0,0,0I rotate the point 30deg around the Y axis, the 30 around the X axis.I then want to move the point 10 units forward.I know how to work out the new X and Y positionMovementX = cos(angle) * MoveDistance;MovementY = sin(angle) * MoveDistance;But then I realised that these values will change because of Z, won't they?How do I work out Z and have I worked out X and Y correctly?Thanks!   
Quote:I have a point at 0,0,0I rotate the point 30deg around the Y axis, the 30 around the X axis.After which you have the exact same point - 0,0,0 :)It looks like what you're really trying to do (as evidenced by the rest of your post) is construct a direction vector for your object based on two rotation angles. A spherical-to-Cartesian or Euler-angle conversion should do what you're wanting. Off the top of my head, here's how you might modify your current code in order to get the desired results:MovementX = cos(yaw) * cos(pitch);MovementY = sin(yaw) * cos(pitch);MovementZ = sin(pitch);