Game Development Community

Settransform rotation on camera

by AndrewOsborne · in Technical Issues · 10/05/2006 (11:18 pm) · 2 replies

Hi Guys,

i have looked through the forums and remarkably noone as mentioned this before.

I am trying to use settransform in script on a camera object.
Currently it is only utlising the X Y Z args and not the rotation args, from reading the code only SceneObject has a settransform consolemethod, and the settransform in the camera class, or any others, say that they dont utilise rotation.

Can someone send me in the right direction to get the camera::settransform to use rotation args passed to it.

Kind Regards,
Andrew Osborne.

#1
10/06/2006 (3:56 am)
Maybe this will help. I found it on the documentation page.

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10297
#2
10/06/2006 (5:19 pm)
I tried this, but it A) doesnt help using settransform (which is actually calling camera::setrendertransform)
and B) it seems to orientate the camera to the horizonline on tick, cool centering effect really but not quite helpful.

Any suggestions, i am surprised more people havent tried to set a cameras direction before.