Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2013-09-14 06:02:58 +0400
committerMitchell Stokes <mogurijin@gmail.com>2013-09-14 06:02:58 +0400
commit63656781098e1443cd3f89fa435688727076eb33 (patch)
treedf5ba9da8daf43a3c149c9af5eb460c24f6d2974 /doc
parent9f87d9963eb8c5320c07429c1590beff54658440 (diff)
BGE: Adding a Python collision API. The initial patch was provided by agoose77, with some edits by me.
KX_GameObject now has a collisionCallbacks list which is a list of callables that are called when a collision occurs. The callables will be called with an argument that contains a reference to the other object involved in the collision (i.e., not self).
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst b/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst
index 3be148556ef..5d699637eb7 100644
--- a/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst
+++ b/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst
@@ -134,6 +134,12 @@ base class --- :class:`SCA_IObject`
:type: :class:`KX_GameObject` or None
+ .. attribute:: collisionCallbacks
+
+ A list of callables to be run when a collision occurs.
+
+ :type: list
+
.. attribute:: scene
The object's scene. (read-only).