KX_CollisionSensor
Base class: SCA_ISensor
Collision sensor detects collisions between objects.
propName
Section titled “propName”The property or material to collide with.
Type: string
useMaterial
Section titled “useMaterial”Determines if the sensor is looking for a property or material. KX_True = Find material; KX_False = Find property.
Type: boolean
usePulseCollision
Section titled “usePulseCollision”When enabled, changes to the set of colliding objects generate a pulse.
Type: boolean
hitObject
Section titled “hitObject”The last collided object. (read-only).
Type: KX_GameObject or None
hitObjectList
Section titled “hitObjectList”A list of colliding objects. (read-only).
Type: EXP_ListValue of KX_GameObject
hitMaterial
Section titled “hitMaterial”The material of the object in the face hit by the ray. (read-only).
Type: string
