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>2008-06-21 00:54:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-06-21 00:54:29 +0400
commita1e78a0cca624061929eb3bae4420be5c16fd540 (patch)
tree1b2b710ae665b20b93f4da6e2d04ca5b98fb8cf1 /source/gameengine/PyDoc
parentde7619991c73bdc93294c8ff892e9df92e0f681d (diff)
* Documented that get/setOrientation use an inverted rotation matrix
* OB prefix is needed when specifying the object for the Message Actuator, this is very bad since other object fields in the BGE dont need this prefix - a real fix would need do_versions to keep old files running. * RotationMatrix was all nans if the rotation vector axis was 0,0,0, Changed so in this case just return a matrix that doesn't rotate anything, spent some angry hours to find these issues, maybe this will save others the hassle ;)
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r--source/gameengine/PyDoc/KX_GameObject.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/PyDoc/KX_GameObject.py b/source/gameengine/PyDoc/KX_GameObject.py
index 678df59e4a9..ff55f975543 100644
--- a/source/gameengine/PyDoc/KX_GameObject.py
+++ b/source/gameengine/PyDoc/KX_GameObject.py
@@ -50,7 +50,7 @@ class KX_GameObject:
"""
Sets the game object's orientation.
- @type orn: 3x3 rotation matrix, or Quaternion.
+ @type orn: 3x3 inverted rotation matrix, or Quaternion.
@param orn: a rotation matrix specifying the new rotation.
"""
def alignAxisToVect(vect, axis):
@@ -69,7 +69,7 @@ class KX_GameObject:
"""
Gets the game object's orientation.
- @rtype: 3x3 rotation matrix
+ @rtype: 3x3 inverted rotation matrix
@return: The game object's rotation matrix
"""
def getLinearVelocity(local):