diff options
Diffstat (limited to 'doc/python_api/rst/bge_types/bge.types.KX_NearSensor.rst')
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.KX_NearSensor.rst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge_types/bge.types.KX_NearSensor.rst b/doc/python_api/rst/bge_types/bge.types.KX_NearSensor.rst new file mode 100644 index 00000000000..995e645b979 --- /dev/null +++ b/doc/python_api/rst/bge_types/bge.types.KX_NearSensor.rst @@ -0,0 +1,23 @@ +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 + |