Module KX_RadarSensor :: Class KX_RadarSensor
[frames | no frames]

Class KX_RadarSensor

SCA_ILogicBrick --+            
                  |            
        SCA_ISensor --+        
                      |        
         KX_TouchSensor --+    
                          |    
              KX_NearSensor --+
                              |
                             KX_RadarSensor


Radar sensor is a near sensor with a conical sensor object.
Method Summary
float getConeHeight()
Returns the height of the cone with which to test.
list [x, y, z] getConeOrigin()
Returns the origin of the cone with which to test.
list [x, y, z] getConeTarget()
Returns the center of the bottom face of the cone with which to test.
    Inherited from KX_TouchSensor
KX_GameObject getHitObject()
Returns the last object hit by this touch sensor.
list [KX_GameObject] getHitObjectList()
Returns a list of all objects hit in the last frame.
string getProperty()
Returns the property or material to collide with.
  getTouchMaterial()
Returns KX_TRUE if this sensor looks for a specific material, KX_FALSE if it looks for a specific property.
  setProperty(name)
Set the property or material to collide with.
  setTouchMaterial(flag)
Set flag to KX_TRUE to switch on positive pulse mode, KX_FALSE to switch off positive pulse mode.
    Inherited from SCA_ISensor
integer getFrequency()
The frequency for pulse mode sensors.
  getInvert()
True if this sensor activates on negative events.
  getUseNegPulseMode()
True if the sensor is in negative pulse mode.
  getUsePosPulseMode()
True if the sensor is in positive pulse mode.
  isPositive()
True if this sensor brick has been activated.
  setFrequency(freq)
Sets the frequency for pulse mode sensors.
  setInvert(invert)
Sets if this sensor activates on positive or negative events.
  setUseNegPulseMode(pulse)
Sets negative pulse mode.
  setUsePosPulseMode(pulse)
Sets positive pulse mode.
    Inherited from SCA_ILogicBrick
integer getExecutePriority()
Gets the execution priority of this logic brick.
KX_GameObject getOwner()
Gets the game object associated with this logic brick.
  setExecutePriority(priority)
Sets the priority of this logic brick.

Method Details

getConeHeight()

Returns the height of the cone with which to test.
Returns:
float

getConeOrigin()

Returns the origin of the cone with which to test. The origin is in the middle of the cone.
Returns:
list [x, y, z]

getConeTarget()

Returns the center of the bottom face of the cone with which to test.
Returns:
list [x, y, z]

Generated by Epydoc 2.1 on Thu Feb 1 00:12:33 2007 http://epydoc.sf.net