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:
authorCampbell Barton <ideasman42@gmail.com>2011-07-29 05:24:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-29 05:24:03 +0400
commit26589497529ca3c8da85391d4976d286a371e258 (patch)
treee1549256e9f68706375b64d656ece51e4e1bf152 /doc/python_api/examples/bge.constraints.py
parent336a47cdcf909864e080d9917cbc04bd7134da1f (diff)
pep8 cleanup, also print message when attempting to run in animation player mode.
Diffstat (limited to 'doc/python_api/examples/bge.constraints.py')
-rw-r--r--doc/python_api/examples/bge.constraints.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/python_api/examples/bge.constraints.py b/doc/python_api/examples/bge.constraints.py
index 4cd967310cc..de2f7e0a39d 100644
--- a/doc/python_api/examples/bge.constraints.py
+++ b/doc/python_api/examples/bge.constraints.py
@@ -8,11 +8,11 @@ from bge import constraints
# get object list
objects = logic.getCurrentScene().objects
-
+
# get object named Object1 and Object 2
object_1 = objects["Object1"]
object_2 = objects["Object2"]
-
+
# want to use Edge constraint type
constraint_type = 2
@@ -31,7 +31,7 @@ edge_angle_y = 1.0
edge_angle_z = 0.0
# create an edge constraint
-constraints.createConstraint( physics_id_1, physics_id_2,
- constraint_type,
- edge_position_x, edge_position_y, edge_position_z,
- edge_angle_x, edge_angle_y, edge_angle_z )
+constraints.createConstraint(physics_id_1, physics_id_2,
+ constraint_type,
+ edge_position_x, edge_position_y, edge_position_z,
+ edge_angle_x, edge_angle_y, edge_angle_z)