Home | Trees | Index | Help |
|
---|
Module KX_TouchSensor :: Class KX_TouchSensor |
|
SCA_ILogicBrick
--+ |SCA_ISensor
--+ | KX_TouchSensor
KX_NearSensor
Method Summary | |
---|---|
KX_GameObject
|
Returns the last object hit by this touch sensor. |
list [KX_GameObject ]
|
Returns a list of all objects hit in the last frame. |
string |
Returns the property or material to collide with. |
Returns KX_TRUE if this sensor looks for a specific material, KX_FALSE if it looks for a specific property. | |
Set the property or material to collide with. | |
Set flag to KX_TRUE to switch on positive pulse mode, KX_FALSE to switch off positive pulse mode. | |
Inherited from SCA_ISensor | |
integer |
The frequency for pulse mode sensors. |
True if this sensor activates on negative events. | |
True if the sensor is in negative pulse mode. | |
True if the sensor is in positive pulse mode. | |
True if this sensor brick has been activated. | |
Sets the frequency for pulse mode sensors. | |
Sets if this sensor activates on positive or negative events. | |
Sets negative pulse mode. | |
Sets positive pulse mode. | |
Inherited from SCA_ILogicBrick | |
integer |
Gets the execution priority of this logic brick. |
KX_GameObject
|
Gets the game object associated with this logic brick. |
Sets the priority of this logic brick. |
Method Details |
---|
getHitObject()Returns the last object hit by this touch sensor.
|
getHitObjectList()Returns a list of all objects hit in the last frame. Only objects that have the requisite material/property are listed.
|
getProperty()Returns the property or material to collide with. Use getTouchMaterial() to find out whether this sensor looks for properties or materials.
|
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. Use setTouchMaterial() to switch between properties and materials.
|
setTouchMaterial(flag)Set flag to KX_TRUE to switch on positive pulse mode, KX_FALSE to switch off positive pulse mode.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Feb 1 00:12:33 2007 | http://epydoc.sf.net |