Game Development Community

Camera Rotation

by Vishal Lamba · in Torque Game Engine · 01/06/2006 (12:15 am) · 1 replies

Can i rotate camera in TGE. i want camera to be rotated with keyboard i tried with this one but its not working
i have advance camera .
%trans = %client.advCamera.getCameraPosition() SPC "0 0 0.785 ";//@ $camrotate;
echo("\n" @ %trans @ "--- rot: " @ $camrotate);
%client.advCamera.setCameraPosition(%trans);

is there any way i have GodView camra set up and i want camera should be roated with player to do that i am want to provide control so the player can change the camera with keyboard

#1
01/07/2006 (11:28 am)
You have to apply a new tranformation each time, rather than applying the same transformation every time. Applying the same one every time will result in the camera being put in the same position every time. Either that, or get the old transform and modify it with the "delta" transform.