Results 1 to 6 of 6

Thread: C++: Camera Math - Pitch, RotateY -- Confirm If Correct

Threaded View

  1. #6

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Re: C++: Camera Math - Pitch, RotateY -- Confirm If Correct

    Yes, that is what I'm doing. But as you saw when I uploaded my game awhile ago the camera was faultered.

    The camera is in a very weak stage right now. I developed a nice new 3rd person camera which nicely follows the player like in GTA for example, and is always looking at the player.

    I am having several problems.
    The major one being, my camera follows me to a T if I am going forwards at any angle, if I begin to move backwards tho...It trails of to an odd angle and is unable to get itself back on track.

    I cannot seem to get the camera to follow at a distance less than the speed it and the player are travelling...So its always far away from the player.

    I cannot seem to figure out how to give the player free rotation of the camera....Well okay I know how, and I have it down but I cannot seem to figure out how to tell which the way the camera is pointing to determine which way forward is based on where the player is looking.
    If you have played any ps2 games especially, with the 2 analog sticks, essentially you can control you guy by only moving the camera wth one stick and holding forward with the other. It is pretty much how I played through Chaos Legion, Castlevania, and many more.


    Edit:
    I believe my Forward VECTOR is to blame on the going backwards and the camera messing up.

    Another Edit: It seems as if I can move backwards fine...for awhile, the length at which I can move backwards varies, on what I do not know. But after awhile the camera spins far out to the opposite angle it was on and loose's track of the object.

    More Edit:
    I have changed so much. Still the camera always follows at a distance equal to the speed of the player.

    Farout Edit:
    I have realized that for the camera to dictate the players angle that the camera should probably also dictate the players new position. The player on the other hand dictates the speed at which the camera will move. That way the camera's angle can always be the forward button. So does that mean that backwards should always be the opposite angle the camera is at?
    Last edited by Halsafar; Dec 8th, 2004 at 10:31 PM.
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width