Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bge.types.KX_NearSensor.rst « bge_types « rst « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 995e645b979af69e2a26758a6fc306846997af94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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