Game Development Community

Distance between camera and player

by Paul Jack · in Torque Game Engine · 01/06/2007 (3:18 pm) · 2 replies

Can I alter the distance between the camera and player when the player is the control object? I tried using camera.setOrbitMode but it just ignores me.

#1
01/09/2007 (6:49 pm)
Check in the player dayablock in player.cs file .There u could find cameraoffset ,maxdist and min distance
#2
01/09/2007 (7:23 pm)
For fun, you could also mess around with the chase cam distance:

%player.chaseCam(%distance);

Just grab the four digit server ID of the player (hit F8, F11 and the number will be floating on your player object) and type the code I gave you above into the console using that player ID for %player and any number > 0 for %distance. I'd recommend starting with 10 or 20 and working your way up / down from there. Don't go to high or you'll crash, a distance of zero will return the camera to normal.