diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2005-01-16 08:55:04 +0300 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2005-01-16 08:55:04 +0300 |
commit | 5fcf39d2a5db1d536e9fbfa52edb2bcdc40d8e29 (patch) | |
tree | a31fe365cd05b7fad14c29f666191c7aaa38b0f8 /source/gameengine/PyDoc | |
parent | cb289b215faa89e61b57ac00244e455992b85f06 (diff) |
Added getDistanceTo Python method (thanks Charlie C)
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r-- | source/gameengine/PyDoc/KX_GameObject.py | 8 | ||||
-rw-r--r-- | source/gameengine/PyDoc/WhatsNew.py | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/KX_GameObject.py b/source/gameengine/PyDoc/KX_GameObject.py index a19e36d6dd0..d3428915f25 100644 --- a/source/gameengine/PyDoc/KX_GameObject.py +++ b/source/gameengine/PyDoc/KX_GameObject.py @@ -148,3 +148,11 @@ class KX_GameObject: """ Returns the user data object associated with this game object's physics controller. """ + def getDistanceTo(other): + """ + Returns the distance to another object or point. + + @param other: a point or another L{KX_GameObject} to measure the distance to. + @type other: L{KX_GameObject} or list [x, y, z] + @rtype: float + """ diff --git a/source/gameengine/PyDoc/WhatsNew.py b/source/gameengine/PyDoc/WhatsNew.py index 883c51dd16d..023d568a052 100644 --- a/source/gameengine/PyDoc/WhatsNew.py +++ b/source/gameengine/PyDoc/WhatsNew.py @@ -5,6 +5,9 @@ New Python Functionality in this Version of Blender This document lists what has been changed in the Game Engine Python API. +Blender CVS + - Added L{KX_GameObject}.getDistanceTo() method. (thanks Charlie C) + Blender 2.36 ------------ - Added L{KX_CameraActuator} methods (thanks snail) |