| Home | Trees | Indices | Help |
|
|---|
|
|
PyObjectPlus --+
|
CValue --+
|
SCA_ILogicBrick --+
|
SCA_ISensor --+
|
KX_TouchSensor
Touch sensor detects collisions between objects.
| Instance Methods | |||
| bool |
|
||
|
|||
| Deprecated | |||
|---|---|---|---|
|
|||
| string |
|
||
| KX_GameObject |
|
||
| CListValue of hitObjectList |
|
||
|
|||
| integer |
|
||
| integer |
|
||
|
|||
| boolean |
|
||
| string |
|
||
| KX_GameObject |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Instance Variables | |
| int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from GameTypes.SCA_ILogicBrick) |
| int |
frequency The frequency for pulse mode sensors. (Inherited from GameTypes.SCA_ISensor) |
| KX_GameObject or None |
hitObject The last collided object. |
| CListValue of KX_GameObject |
hitObjectList A list of colliding objects. |
| bool |
invalid Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus) |
| boolean |
invert Flag to set if this sensor activates on positive or negative events. (Inherited from GameTypes.SCA_ISensor) |
| boolean |
level Option whether to detect level or edge transition when entering a state. (Inherited from GameTypes.SCA_ISensor) |
| string |
name The name of this CValue derived object (read-only). (Inherited from GameTypes.SCA_ILogicBrick) |
| KX_GameObject or None in exceptional cases. |
owner The game object this logic brick is attached to (read-only). (Inherited from GameTypes.SCA_ILogicBrick) |
| boolean |
positive True if this sensor brick is in a positive state. (Inherited from GameTypes.SCA_ISensor) |
| string |
propName The property or material to collide with. |
| boolean |
tap When enabled only sensors that are just activated will send a positive event, after this they will be detected as negative by the controllers. (Inherited from GameTypes.SCA_ISensor) |
| boolean |
triggered True if this sensor brick is in a positive state. (Inherited from GameTypes.SCA_ISensor) |
| boolean |
useMaterial Determines if the sensor is looking for a property or material. |
| boolean |
useNegPulseMode Flag to turn negative pulse mode on and off. (Inherited from GameTypes.SCA_ISensor) |
| boolean |
usePosPulseMode Flag to turn positive pulse mode on and off. (Inherited from GameTypes.SCA_ISensor) |
| bool |
usePulseCollision When enabled, changes to the set of colliding objects generate a pulse. |
| Method Details |
Set the property or material to collide with. Use setTouchMaterial() to switch between properties and materials.
Deprecated:
use the |
Returns the property or material to collide with. Use getTouchMaterial() to find out whether this sensor looks for properties or materials.
Deprecated:
use the |
Returns the last object hit by this touch sensor.
Deprecated: use the hitObject property |
Returns a list of all objects hit in the last frame. (deprecated) Only objects that have the requisite material/property are listed.
Deprecated: use the hitObjectList property |
Returns KX_TRUE if this sensor looks for a specific material, KX_FALSE if it looks for a specific property. (deprecated) Deprecated: use the useMaterial property |
| Instance Variable Details |
hitObjectThe last collided object. (read-only)
|
hitObjectListA list of colliding objects. (read-only)
|
useMaterialDetermines if the sensor is looking for a property or material. KX_True = Find material; KX_False = Find property
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0 on Mon Aug 31 23:12:31 2009 | http://epydoc.sourceforge.net |