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:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-06-23 16:02:28 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-06-28 13:54:53 +0300
commit9f48aa45adb34e03f42d8960fa6d47c5e8b061ab (patch)
tree85573468ed4c7bc2d5e632df288582851ad1b8ce /doc
parentc5c2883ce039a35945282b770ad77f461cdf05ad (diff)
BGE: added clamping of angular velocity.
Angular velocity clamping was missing from the BGE. It is implemented similarly to the linear velocity clamping. It is needed to be able to drive physical simulations of systems that have a limited rotational speed. Reviewed by: campbellbarton, panzergame, ton Differential Revision: https://developer.blender.org/D1365
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst23
1 files changed, 23 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 672df3728a9..a24aa546cb9 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
@@ -139,6 +139,29 @@ base class --- :class:`SCA_IObject`
A value of 0.0 disables this option (rather then setting it stationary).
+ .. attribute:: angularVelocityMin
+
+ Enforces the object keeps rotating at a minimum velocity. A value of 0.0 disables this.
+
+ :type: non-negative float
+
+ .. note::
+
+ Applies to dynamic and rigid body objects only.
+ While objects are stationary the minimum velocity will not be applied.
+
+
+ .. attribute:: angularVelocityMax
+
+ Clamp the maximum angular velocity to prevent objects rotating beyond a set speed.
+ A value of 0.0 disables clamping; it does not stop rotation.
+
+ :type: non-negative float
+
+ .. note::
+
+ Applies to dynamic and rigid body objects only.
+
.. attribute:: localInertia
the object's inertia vector in local coordinates. Read only.