Page MenuHome

pydocpatch.txt

File Metadata

Author
José Ignacio Romero (cyborgar)
Created
Nov 13 2013, 1:34 PM

pydocpatch.txt

Index: source/gameengine/PyDoc/KX_GameObject.py
===================================================================
--- source/gameengine/PyDoc/KX_GameObject.py (revisión: 14651)
+++ source/gameengine/PyDoc/KX_GameObject.py (copia de trabajo)
@@ -58,15 +58,16 @@
@rtype: 3x3 rotation matrix
@return: The game object's rotation matrix
"""
- def getLinearVelocity():
+ def getLinearVelocity(local):
"""
Gets the game object's linear velocity.
This method returns the game object's velocity through it's centre of mass,
ie no angular velocity component.
- cf getVelocity()
-
+ @type local: boolean
+ @param local: - False: you get the "global" velocity ie: relative to world orientation.
+ - True: you get the "local" velocity ie: relative to object orientation.
@rtype: list [vx, vy, vz]
@return: the object's linear velocity.
"""
@@ -138,6 +139,9 @@
def setParent(parent):
"""
Sets this object's parent.
+
+ @type parent: L{KX_GameObject}
+ @param parent: new parent object.
"""
def removeParent():
"""

Event Timeline