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:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-05-25 02:50:31 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2008-05-25 02:50:31 +0400
commite2a9590a15c807c391ec7eff05c7168a8025ab7a (patch)
tree6f947d739841b8b4771cf2cb884aaba877a51910 /source/gameengine/PyDoc
parent7b069b9b6041ca2e5170414a0d4082ba78ca1380 (diff)
BGE patch: rename rayCastToEx() to rayCast() - better name
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r--source/gameengine/PyDoc/KX_GameObject.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/gameengine/PyDoc/KX_GameObject.py b/source/gameengine/PyDoc/KX_GameObject.py
index b0f55b4ad7a..fbd896a55d1 100644
--- a/source/gameengine/PyDoc/KX_GameObject.py
+++ b/source/gameengine/PyDoc/KX_GameObject.py
@@ -174,7 +174,7 @@ class KX_GameObject:
The ray is always casted from the center of the object, ignoring the object itself.
The ray is casted towards the center of another object or an explicit [x,y,z] point.
- Use rayCastToEx() if you need to retrieve the hit point
+ Use rayCast() if you need to retrieve the hit point
@param other: [x,y,z] or object towards which the ray is casted
@type other: L{KX_GameObject} or 3-tuple
@@ -185,13 +185,13 @@ class KX_GameObject:
@rtype: L{KX_GameObject}
@return: the first object hit or None if no object or object does not match prop
"""
- def rayCastToEx(to,from,dist,prop):
+ def rayCast(to,from,dist,prop):
"""
Look from a point/object to another point/object and find first object hit within dist that matches prop.
- Returns a 3-tuple with object reference, hit point and hit normal or (None,None,None) if no object hit.
+ Returns a 3-tuple with object reference, hit point and hit normal or (None,None,None) if no hit.
Ex:
# shoot along the axis gun-gunAim (gunAim should be collision-free)
- ob,point,normal = gun.rayCastToEx(gunAim,None,50)
+ ob,point,normal = gun.rayCast(gunAim,None,50)
if ob:
# hit something