# To get a sensor linked to this controller.# "sensorname" is the name of the sensor as defined in the Blender interface.# +---------------------+ +--------+# | Sensor "sensorname" +--+ Python +# +---------------------+ +--------+sens=cont.sensors["sensorname"]# To get a sequence of all sensors:sensors=co.sensors

A dictionary that is saved between loading blend files so you can use it to store inventory and other variables you want to store between scenes and blend files.
It can also be written to a file and loaded later on with the game load/save actuators.

Note

only python built in types such as int/string/bool/float/tuples/lists can be saved, GameObjects, Actuators etc will not work as expected.

Sets the maximum number of physics timestep that are executed per render frame.
Higher value allows physics to keep up with realtime even if graphics slows down the game.
Physics timestep is fixed and equal to 1/tickrate (see setLogicTicRate)
maxphysics/ticrate is the maximum delay of the renderer that physics can compensate.

Parameters:

maxphysics (integer) – The new maximum number of physics timestep per render frame. Valid values: 1..5.

Use / as directory separator in path
You can use ‘//’ at the start of the string to define a relative path;
Blender replaces that string by the directory of the startup .blend or runtime file
to make a full path name (doesn’t change during the game, even if you load other .blend).
The function also converts the directory separator to the local file system format.

Returns a Python dictionary that contains the same information as the on screen profiler. The keys are the profiler categories and the values are tuples with the first element being time taken (in ms) and the second element being the percentage of total time.