Thread: Help me describe what is going on here

  1. #1
    Shadow12345
    Guest

    Help me describe what is going on here

    There is something I am confused about with a camera movement tutorial, more specifically with mouse movement (normal windows messaging, not directinput)

    Here is the code I am confused about

    Code:
    	// Get the direction the mouse moved in, but bring the number down to a reasonable amount
    	angleY = (float)( (middleX - mousePos.x) ) / 500.0f;		
    	angleZ = (float)( (middleY - mousePos.y) ) / 500.0f;
    Shouldn't the zAngle be the horizontal movement (meaning the differnces between the x positions) and the y angle simply be the up/down movement? The zangle is used to find a vector to rotate the up/down movement about. this is weird because when you just examine the y movement the axis rotating about doesn't change! this is from a tutorial, www.gametutorials.com

    Thanks if you can help me

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    it depends on how u use the angley and anglez later right?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 05-27-2007, 11:06 PM
  2. typedef...
    By AlexTP2K in forum C++ Programming
    Replies: 3
    Last Post: 04-26-2004, 01:08 PM
  3. Help needed Please
    By jereland in forum C Programming
    Replies: 9
    Last Post: 03-18-2004, 05:30 AM
  4. After life?
    By Sekti in forum A Brief History of Cprogramming.com
    Replies: 152
    Last Post: 04-22-2002, 09:51 AM
  5. Replies: 0
    Last Post: 02-28-2002, 05:45 PM