diff options
Diffstat (limited to 'doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst')
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst b/doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst new file mode 100644 index 00000000000..fd8f319f6f3 --- /dev/null +++ b/doc/python_api/rst/bge_types/bge.types.KX_TouchSensor.rst @@ -0,0 +1,41 @@ +KX_TouchSensor(SCA_ISensor) +=========================== + +.. module:: bge.types + +base class --- :class:`SCA_ISensor` + +.. class:: KX_TouchSensor(SCA_ISensor) + + Touch sensor detects collisions between objects. + + .. attribute:: propName + + The property or material to collide with. + + :type: string + + .. attribute:: useMaterial + + Determines if the sensor is looking for a property or material. KX_True = Find material; KX_False = Find property. + + :type: boolean + + .. attribute:: usePulseCollision + + When enabled, changes to the set of colliding objects generate a pulse. + + :type: boolean + + .. attribute:: hitObject + + The last collided object. (read-only). + + :type: :class:`KX_GameObject` or None + + .. attribute:: hitObjectList + + A list of colliding objects. (read-only). + + :type: :class:`CListValue` of :class:`KX_GameObject` + |