Game Development Community

Jerky Camera Motion when using Free Cam connected to remote server

by Devin Passage · in Torque Game Engine Advanced · 05/24/2009 (5:14 pm) · 2 replies

if you used Template as a basis for your project the default movementspeed of client cams is wrong.

fix this by going to ScriptsAndAssetsServerScriptsCamera.cs

and change this line:

$Camera::movementSpeed = 15;

to this $Camera::movementSpeed = 40;

wasted 5 hours finding that, now you don't have to! :)

Not gonna go into detail of how this works or whats wrong, that's just how to fix it.

#1
05/24/2009 (5:44 pm)
You can change the camera speed from the editor as well.
#2
05/24/2009 (6:55 pm)
that doesnt write the camera speed permanently and if it did it would cause the bug. the speed of 45 is hardcoded in camera.cpp kids. the server pulls it from camera.cs but the client pulls it from the engine code, if they dont match you get the jerky camera.