Blender Git Loki

Git Commits -> Revision 435a49d

Revision 435a49d by Benoit Bolsee (master)
March 15, 2008, 17:08 (GMT)
New rayCastTo() python method for KX_GameObject:

rayCastTo(other,dist,prop)

Look towards another point/KX_GameObject and return first object hit within dist with a property that match prop, None if no object found or if it does not match prop.

Parameters:
other = 3-tuple (xyz coordinates) or object reference (target=center of object)
(type = list [x,y,z] or object reference)
dist = max distance of detection (can be negative => look behind)
If 0 or omitted => detect up to other
(type=float)
prop = property name that object must have
If empty or omitted => detect any object
(type=string)

Commit Details:

Full Hash: 435a49dfe7c5f6933c7e07cb06154dfcabeaf09e
SVN Revision: 14121
Parent Commit: d0b36bf
Lines Changed: +105, -2

3 Modified Paths:

/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+82, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+22, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021