Game Development Community

Setting the camera's orbit mode orientation.

by Dean · in Torque Game Engine · 06/13/2007 (12:33 pm) · 1 replies

I got the fix www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=11035 for the initial camera orientation, and i'm trying to set the camera's starting position to a standard isometric view of the player. I'm trying to find the right values to put into the transform but I can't seem to figure out how in the world to get the camera started in the right position and rotation (assuming the character is at 0,0,0).

Here's some of my code:

%camvect = " 0.0 0.0 0.0 0.0 0.0 0.0 0.0";//what values should I use here??
LocalClientConnection.Camera.setOrbitMode(LocalClientConnection.Player, %camvect, 2, 20, 10, 0);


from what I know, the first three values are position and the last three are rotation. I'm pretty sure the last one is horizontal rotation, but I keep playing with the values in %camvect but I can't seem to find any pattern to figuring out how to to set an isometric overhead view. Sometimes the game just locks up. :/

#1
06/13/2007 (12:54 pm)
Well, i figured out it works well with
%camvect = " 0.0 0.0 0.0 5.0 0.0 3.0 3.0";

but I still have no idea WHY :/