Game Development Community

setScenePhysicsFPSActive Unknown Command

by Andrew "Blorf" Hume · in Torque Game Builder · 05/16/2009 (1:09 pm) · 1 replies

I am using TGB 1.7.4, unmodified

I call the following script in my startGame function:
%level=expandFilename("~/data/levels/baselevel.t2d");
sceneWindow2D.loadLevel(%level);
   
$thescenegraph = sceneWindow2D.getSceneGraph();
$thescenegraph.setScenePhysicsFPSActive(1);   
$thescenegraph.setScenePhysicsLimitFPS(20);   
$thescenegraph.setScenePhysicsTargetFPS(60);   
$thescenegraph.setScenePhysicsMaxIterations(2);

Unfortunatley, when I run the game I get the following result:
game/gameScripts/game.cs (38): Unknown command setScenePhysicsFPSActive.
  Object (1353) t2dSceneGraph -> SimSet -> SimObject
game/gameScripts/game.cs (39): Unknown command setScenePhysicsLimitFPS.
  Object (1353) t2dSceneGraph -> SimSet -> SimObject
game/gameScripts/game.cs (40): Unknown command setScenePhysicsTargetFPS.
  Object (1353) t2dSceneGraph -> SimSet -> SimObject
game/gameScripts/game.cs (41): Unknown command setScenePhysicsMaxIterations.
  Object (1353) t2dSceneGraph -> SimSet -> SimObject

This command is critical to my development progress. Please let me know what has happened to it/what it has been replaced with. My searches have revealed nothing. :(


Thank you.

#1
05/22/2009 (5:03 am)
None of thoses command exist anymore and have been obsolete for a very long time. I implemented tick-physics and per-frame interpolation to replace this therefore you have nothing extra to configure so ignore these commands.

If you need more specific information then please ask.