Module KX_RaySensor :: Class KX_RaySensor
[hide private]
[frames] | no frames]

Class KX_RaySensor

source code

SCA_ILogicBrick.SCA_ILogicBrick --+    
                                  |    
            SCA_ISensor.SCA_ISensor --+
                                      |
                                     KX_RaySensor

A ray sensor detects the first object in a given direction.

Instance Methods [hide private]
KX_GameObject
getHitObject()
Returns the game object that was hit by this ray.
source code
list [x, y, z]
getHitPosition()
Returns the position (in worldcoordinates) where the object was hit by this ray.
source code
list [nx, ny, nz]
getHitNormal()
Returns the normal (in worldcoordinates) of the object at the location where the object was hit by this ray.
source code
list [dx, dy, dz]
getRayDirection()
Returns the direction from the ray (in worldcoordinates)
source code

Inherited from SCA_ISensor.SCA_ISensor: getFrequency, getInvert, getLevel, getUseNegPulseMode, getUsePosPulseMode, isPositive, isTriggered, reset, setFrequency, setInvert, setLevel, setUseNegPulseMode, setUsePosPulseMode

Inherited from SCA_ILogicBrick.SCA_ILogicBrick: getExecutePriority, getOwner, setExecutePriority