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
diff options
context:
space:
mode:
authorThomas Szepe <HG1_public@gmx.net>2015-05-10 16:58:17 +0300
committerThomas Szepe <HG1_public@gmx.net>2015-05-10 16:58:17 +0300
commit1c02a201ba992adc43ec9d9a08b121edfaec4232 (patch)
tree2c1a70209f9f47cb76a84e856d24de833c651404 /doc/python_api/examples/bge.constraints.py
parenta47ade34c22349d31682481b69e9e39b94cc6d0f (diff)
BGE: Cleanup constraints documentation
* Fixing Python example. Behavior has changed with Blender 2.74 * Adding missing return type * Fixing typo simbolic * Fixing note for upper/lower limit * Adding link to constraints constants
Diffstat (limited to 'doc/python_api/examples/bge.constraints.py')
-rw-r--r--doc/python_api/examples/bge.constraints.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/python_api/examples/bge.constraints.py b/doc/python_api/examples/bge.constraints.py
index e76fc3dd13b..c617ac0622b 100644
--- a/doc/python_api/examples/bge.constraints.py
+++ b/doc/python_api/examples/bge.constraints.py
@@ -20,15 +20,15 @@ constraint_type = 2
physics_id_1 = object_1.getPhysicsId()
physics_id_2 = object_2.getPhysicsId()
-# Use bottom right edge of Object1 for hinge position
+# use bottom right edge of Object1 for hinge position
edge_position_x = 1.0
edge_position_y = 0.0
edge_position_z = -1.0
-# use Object1 y axis for angle to point hinge
+# rotate the pivot z axis about 90 degrees
edge_angle_x = 0.0
-edge_angle_y = 1.0
-edge_angle_z = 0.0
+edge_angle_y = 0.0
+edge_angle_z = 90.0
# create an edge constraint
constraints.createConstraint(physics_id_1, physics_id_2,