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/KX_GameObject.py | |
parent | cb289b215faa89e61b57ac00244e455992b85f06 (diff) |
Added getDistanceTo Python method (thanks Charlie C)
Diffstat (limited to 'source/gameengine/PyDoc/KX_GameObject.py')
-rw-r--r-- | source/gameengine/PyDoc/KX_GameObject.py | 8 |
1 files changed, 8 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 + """ |