Game Development Community

How can I rotate the camera?

by Gokhan Sivrikaya · in Torque Game Builder · 09/27/2006 (4:28 pm) · 6 replies

Hello all,
How can I rotate the camera?
I can not find any information at references.
tdn's camera methods page doesn't have any parameters or functions about rotation for camera object. (http://tdn.garagegames.com/wiki/TGB/Reference:_t2dSceneWindow_Camera_Methods)

is there a built in method for camera object for rotating or do I have to rotate all the scene with calculating lots of stuff?

Adding a rotation method to camera obj from the source can be a solution but what will be hard to do.

But I think there is a method that i cannot find because rotating the camera is mentioned at tgb pro's Features list.

I'll be pleased if someone helps me.
Thanks.

About the author

Recent Threads

  • License question

  • #1
    09/28/2006 (2:05 am)
    Currently there is no way to rotate the camera in TGB. It is entirely possible that camera rotation functionality will be included in a future version, but as far as I know there are no immediate plans to implement it.
    #2
    09/28/2006 (2:37 am)
    If it's not going to be done anytime soon (and it would be a shame if it wasn't), are there plans to update the product page:
    Quote:The camera system in TGB is extremely flexible. Set windows to cover a given area of the scene with a specific zoom level, then zoom, rotate, and pan the view any time.
    #3
    09/28/2006 (2:39 am)
    I've been wondering about the product page for months too... =)

    Anyway, there's no way with the stock code, no. But it's resonably easy to hack rotation into the camera code (provided you have the source license that is).

    I posted some code in another thread here www.garagegames.com/mg/forums/result.thread.php?qt=29015. It's pretty ugly code but it should work.
    #4
    09/29/2006 (5:48 pm)
    Thanks for the code Magnus,
    I'll try that. If i have any optimizations, I'll send them to other thread.
    #5
    06/06/2011 (9:24 pm)
    Wow, been a while since anyones talked on this one...

    I'd like a rotate function as well. In the future I'd like to do some top-down games, but for now I'd like to have some levels sway around like the escape levels in 'Metroid'.
    #6
    06/08/2011 (10:34 pm)
    I've been looking for this for years actually :D.. was just searching the forums again to see if someones hacked it. Seems like it would be easier to rotate the whole world at this point :D