Game Development Community

Camera rotation

by Martin Clancy · in Torque Game Engine · 11/24/2003 (2:44 pm) · 3 replies

Hi

I'm trying to rotate the player camera angle 90 degrees
around the Y axis.

I'm having problems locating where the initial camera position is
set in the engine.

I can't workout where the updated position coordinates from mouse and keyboard input are passed to the camera.

can anyone help please?

About the author

Recent Threads

  • Getting Started

  • #1
    11/24/2003 (2:54 pm)
    The input parameters do not have this information.

    you will need to use getTransform .. or whatever it's called to get the world matrix.
    #2
    11/25/2003 (3:01 am)
    Alot of people mistake the client.camera for the camera you look through in 3rd person. For the client camera its easy, you need to get the transform of the cam and set its new transform based on the previous numbers and the 90 degree z rotation +/-.

    The 3rd person camera is accualy attached to the model, and would be more dificult to move or rotate and would need to be done within the engine.
    #3
    11/25/2003 (6:02 am)
    Thanks for your help!