TGB 1.6: camera mount problem
by And Yet It Moves · in Torque Game Builder · 12/15/2007 (3:56 pm) · 2 replies
After updating to TGB 1.6 our camera didnt work anymore. It is mountet to the player object which moves around:
Where globals.cameraMountForce = 5.
After diffing t2dSceneWindow.cc of 1.6 with the version of 1.5.1, I found that these lines where missing (line 2664)
After readding them to the t2dSceneWindow.cc our system worked again. Where those lines left out on purpose?
greets
Felix
sceneWindow2D.mount(player, "0 0", globals.cameraMountForce, false);
Where globals.cameraMountForce = 5.
After diffing t2dSceneWindow.cc of 1.6 with the version of 1.5.1, I found that these lines where missing (line 2664)
// Is Camera Mounted?
else if ( isCameraMounted() )
{
// Yes, so calculate Camera Mount.
calculateCameraMount( ITickable::smTickSec );
}After readding them to the t2dSceneWindow.cc our system worked again. Where those lines left out on purpose?
greets
Felix
#2
12/19/2007 (11:37 am)
The call should have been moved to the t2dSceneObject.cc integrateObject function... that way when the object updates, it updates the camera mount, instead of updating the camera mount when the camera ticks, then updating the object after the camera mount (since Gui Objects get added to ITickable first).
Torque Owner Tyler Slabinski