Multi-cam
by Mehmet Kizil · in Torque Game Engine · 01/08/2004 (5:48 pm) · 1 replies
Hi,
this will probably be an easy question for someone out there.
Ok, I have a screen split with 2 gameTSCtrl's above and below. I need one with camera
attached to the player, and the other attached to another camera which i placed within
the mission editor. I figure this can be done in script, but im not sure how to attach
a camera in the mission editor to a specific gameTSCtrl (can this be done), or do I
have to code a whole new control?
Really I just need to find which part of code or script, tells a gameTSCtrl which camera to associate with.
Any help would be great.
bye
this will probably be an easy question for someone out there.
Ok, I have a screen split with 2 gameTSCtrl's above and below. I need one with camera
attached to the player, and the other attached to another camera which i placed within
the mission editor. I figure this can be done in script, but im not sure how to attach
a camera in the mission editor to a specific gameTSCtrl (can this be done), or do I
have to code a whole new control?
Really I just need to find which part of code or script, tells a gameTSCtrl which camera to associate with.
Any help would be great.
bye
Torque Owner Mehmet Kizil
I figured it out.
I just made a new control based on guiTSCtrl, and i attached it to an object using:
MatrixF Camera(true);
Camera.setColumn(3, mAttachedObject->getBoxCenter());
query->cameraMatrix = Camera;
within the processCameraQuery function.
However, if you have any alternatives to this method, i'd love to hear them...
out