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

bge.types.KX_TouchSensor.rst « bge_types « rst « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 876d14bc6c87bf749f8465c172aa341439978c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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`

   .. attribute:: hitMaterial

      The material of the object in the face hit by the ray. (read-only).

      :type: string