diff options
Diffstat (limited to 'doc/python_api/rst/bge.types.rst')
-rw-r--r-- | doc/python_api/rst/bge.types.rst | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/doc/python_api/rst/bge.types.rst b/doc/python_api/rst/bge.types.rst deleted file mode 100644 index b043f53e413..00000000000 --- a/doc/python_api/rst/bge.types.rst +++ /dev/null @@ -1,37 +0,0 @@ - -Game Types (bge.types) -====================== - -.. module:: bge.types - -************ -Introduction -************ - -This module contains the classes that appear as instances in the Game Engine. A -script must interact with these classes if it is to affect the behaviour of -objects in a game. - -The following example would move an object (i.e. an instance of -:class:`KX_GameObject`) one unit up. - -.. code-block:: python - - # bge.types.SCA_PythonController - cont = bge.logic.getCurrentController() - - # bge.types.KX_GameObject - obj = cont.owner - obj.worldPosition.z += 1 - -To run the code, it could be placed in a Blender text block and executed with -a :class:`SCA_PythonController` logic brick. - -***** -Types -***** - -.. toctree:: - :glob: - - bge.types.* |