Game Development Community

T3D Camera Modes

by Michael Lorenz · in Torque 3D Professional · 10/18/2010 (8:24 pm) · 1 replies

Following the instructions of http://docs.torquepowered.com/torque-3d/official/content/documentation/Scripting/Advanced/CameraModes.html , I am attempting to implement a TrackObject camera system. The problem is that it seems that I have to issue:

%client.setControlObject(%client.camera);

for the camera to be able to track the player. If I issue:

%client.setControlObject(%client.camera);
%client.camera.setTrackObject(%client.player);
%client.setControlObject(%client.player);

It results rendering the FPS view. How do I relinquish movement controls to the player but yet still render from my TrackObject viewpoint?

#1
10/25/2010 (6:46 pm)
You would need to create a seperate camera. One for the game itself and then not worry about the player's camera objects.