KX_NearSensor(KX_TouchSensor)
=============================

.. module:: bge.types

base class --- :class:`KX_TouchSensor`

.. class:: KX_NearSensor(KX_TouchSensor)

   A near sensor is a specialised form of touch sensor.

   .. attribute:: distance

      The near sensor activates when an object is within this distance.

      :type: float

   .. attribute:: resetDistance

      The near sensor deactivates when the object exceeds this distance.

      :type: float

