[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32331] trunk/blender/source/gameengine/ PyDoc/bge.types.rst: Updating the bge. types docs to note which KX_GameObject attributes return mathutils objects.
Mitchell Stokes
mogurijin at gmail.com
Tue Oct 5 21:05:09 CEST 2010
Revision: 32331
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32331
Author: moguri
Date: 2010-10-05 21:05:09 +0200 (Tue, 05 Oct 2010)
Log Message:
-----------
Updating the bge.types docs to note which KX_GameObject attributes return mathutils objects. Also adding localLinearVelocity, worldLinearVelocity, localAngularVelocity, and worldAngularVelocity to the KX_GameObject docs.
Modified Paths:
--------------
trunk/blender/source/gameengine/PyDoc/bge.types.rst
Modified: trunk/blender/source/gameengine/PyDoc/bge.types.rst
===================================================================
--- trunk/blender/source/gameengine/PyDoc/bge.types.rst 2010-10-05 18:35:02 UTC (rev 32330)
+++ trunk/blender/source/gameengine/PyDoc/bge.types.rst 2010-10-05 19:05:09 UTC (rev 32331)
@@ -929,9 +929,9 @@
.. attribute:: color
- The object color of the object.
+ The object color of the object. [r, g, b, a]
- :type: list [r, g, b, a]
+ :type: :class:`mathutils.Vector`
.. attribute:: occlusion
@@ -941,63 +941,87 @@
.. attribute:: position
- The object's position.
+ The object's position. [x, y, z] On write: local position, on read: world position
.. deprecated:: use :data:`localPosition` and :data:`worldPosition`.
- :type: list [x, y, z] On write: local position, on read: world position
+ :type: :class:`mathurils.Vector`
.. attribute:: orientation
- The object's orientation. 3x3 Matrix. You can also write a Quaternion or Euler vector.
+ The object's orientation. 3x3 Matrix. You can also write a Quaternion or Euler vector. On write: local orientation, on read: world orientation
.. deprecated:: use :data:`localOrientation` and :data:`worldOrientation`.
- :type: 3x3 Matrix [[float]] On write: local orientation, on read: world orientation
+ :type: :class:`mathutils.Matrix`
.. attribute:: scaling
- The object's scaling factor. list [sx, sy, sz]
+ The object's scaling factor. [sx, sy, sz] On write: local scaling, on read: world scaling
.. deprecated:: use :data:`localScale` and :data:`worldScale`.
- :type: list [sx, sy, sz] On write: local scaling, on read: world scaling
+ :type: :class:`mathutils.Vector`
.. attribute:: localOrientation
The object's local orientation. 3x3 Matrix. You can also write a Quaternion or Euler vector.
- :type: 3x3 Matrix [[float]]
+ :type: :class:`mathutils.Matrix`
.. attribute:: worldOrientation
- The object's world orientation.
+ The object's world orientation. 3x3 Matrix.
- :type: 3x3 Matrix [[float]]
+ :type: :class:`mathutils.Matrix`
.. attribute:: localScale
- The object's local scaling factor.
+ The object's local scaling factor. [sx, sy, sz]
- :type: list [sx, sy, sz]
+ :type: :class:`mathutils.Vector`
.. attribute:: worldScale
- The object's world scaling factor. Read-only.
+ The object's world scaling factor. Read-only. [sx, sy, sz]
- :type: list [sx, sy, sz]
+ :type: :class:`mathutils.Vector`
.. attribute:: localPosition
- The object's local position.
+ The object's local position. [x, y, z]
- :type: list [x, y, z]
+ :type: :class:`mathutils.Vector`
.. attribute:: worldPosition
- The object's world position.
+ The object's world position. [x, y, z]
- :type: list [x, y, z]
+ :type: :class:`mathutils.Vector`
+
+ .. attribute:: localLinearVelocity
+
+ The object's local linear velocity. [x, y, z]
+
+ :type: :class:`mathutils.Vector`
+
+ .. attribute:: worldLinearVelocity
+
+ The object's world linear velocity. [x, y, z]
+
+ :type: :class:`mathutils.Vector`
+
+ .. attribute:: localAngularVelocity
+
+ The object's local angular velocity. [x, y, z]
+
+ :type: :class:`mathutils.Vector`
+
+ .. attribute:: worldAngularVelocity
+
+ The object's world angular velocity. [x, y, z]
+
+ :type: :class:`mathutils.Vector`
.. attribute:: timeOffset
More information about the Bf-blender-cvs
mailing list