SetCameraObject
by University of Gotland (#0024) · in Torque Game Engine Advanced · 04/09/2007 (8:53 am) · 0 replies
Hi
Im trying to set my camera object to get the view from a camera that is not the controllable object
if i use the setCameraObject in the script it seems to do nothing. i Got my player as a controllable object and it is also the Camera object , i got one camera and one Advanced Camera.
if try to set a new camera to as CameraObject to view from it with %this.setCameraObject(%this.camera);
it still has the value of the player when i check it in the debugger by with the getCameraObject and a couple of watches . i know my cameras objects exist and work fine since i have them in the debugger and they work if i set them to contollable objects. This problem has been annoying me for a while now. I have tested with both the standard functions from the engine and the ones that is suggested when getting Advanced camera, they seem to do pretty much the same thing codewise. im using TGEA btw
Any help or suggestions are welcome :)
*Edit
The problem is solved , and it was a mega stupid problem. the problem was that first person mode was set and if it is set the camera will always be locked on the controllableobject. I had no idea and would probably have ripping my hair about it for a few more days if i the guys on irc wouldn't have helped :D
Im trying to set my camera object to get the view from a camera that is not the controllable object
if i use the setCameraObject in the script it seems to do nothing. i Got my player as a controllable object and it is also the Camera object , i got one camera and one Advanced Camera.
if try to set a new camera to as CameraObject to view from it with %this.setCameraObject(%this.camera);
it still has the value of the player when i check it in the debugger by with the getCameraObject and a couple of watches . i know my cameras objects exist and work fine since i have them in the debugger and they work if i set them to contollable objects. This problem has been annoying me for a while now. I have tested with both the standard functions from the engine and the ones that is suggested when getting Advanced camera, they seem to do pretty much the same thing codewise. im using TGEA btw
Any help or suggestions are welcome :)
*Edit
The problem is solved , and it was a mega stupid problem. the problem was that first person mode was set and if it is set the camera will always be locked on the controllableobject. I had no idea and would probably have ripping my hair about it for a few more days if i the guys on irc wouldn't have helped :D