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:
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst12
1 files changed, 9 insertions, 3 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 b314a47c8e9..215ff40577c 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
@@ -551,7 +551,7 @@ base class --- :class:`SCA_IObject`
This is not implimented at the moment.
- .. method:: applyImpulse(point, impulse)
+ .. method:: applyImpulse(point, impulse, local=False)
Applies an impulse to the game object.
@@ -559,8 +559,14 @@ base class --- :class:`SCA_IObject`
If point != position, applyImpulse will also change the object's angular momentum.
Otherwise, only linear momentum will change.
- :arg point: the point to apply the impulse to (in world coordinates)
- :type point: the point to apply the impulse to (in world coordinates)
+ :arg point: the point to apply the impulse to (in world or local coordinates)
+ :type point: point [ix, iy, iz] the point to apply the impulse to (in world or local coordinates)
+ :arg impulse: impulse vector.
+ :type impulse: 3D Vector
+ :arg local:
+ * False: you get the "global" impulse ie: relative to world coordinates with world orientation.
+ * True: you get the "local" impulse ie: relative to local coordinates with object orientation.
+ :type local: boolean
.. method:: suspendDynamics()