1
2
3 from SCA_ISensor import *
4
6 """
7 Touch sensor detects collisions between objects.
8 """
10 """
11 Set the property or material to collide with. Use
12 setTouchMaterial() to switch between properties and
13 materials.
14 @type name: string
15 """
17 """
18 Returns the property or material to collide with. Use
19 getTouchMaterial() to find out whether this sensor
20 looks for properties or materials.
21
22 @rtype: string
23 """
24
26 """
27 Returns the last object hit by this touch sensor.
28
29 @rtype: L{KX_GameObject}
30 """
32 """
33 Returns a list of all objects hit in the last frame.
34
35 Only objects that have the requisite material/property are listed.
36
37 @rtype: list [L{KX_GameObject}]
38 """
40 """
41 Returns KX_TRUE if this sensor looks for a specific material,
42 KX_FALSE if it looks for a specific property.
43 """
45 """
46 Set flag to KX_TRUE to switch on positive pulse mode,
47 KX_FALSE to switch off positive pulse mode.
48
49 @type flag: KX_TRUE or KX_FALSE.
50 """
51