KX_TouchSensor(SCA_ISensor)

base class — SCA_ISensor

class bge.types.KX_TouchSensor(SCA_ISensor)

Touch sensor detects collisions between objects.

propName

The property or material to collide with.

Type:string
useMaterial

Determines if the sensor is looking for a property or material. KX_True = Find material; KX_False = Find property.

Type:boolean
usePulseCollision

When enabled, changes to the set of colliding objects generate a pulse.

Type:boolean
hitObject

The last collided object. (read-only).

Type:KX_GameObject or None
hitObjectList

A list of colliding objects. (read-only).

Type:CListValue of KX_GameObject
hitMaterial

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

Type:string

Previous topic

KX_SteeringActuator(SCA_IActuator)

Next topic

KX_TrackToActuator(SCA_IActuator)