SCA_NearSensor(KX_CollisionSensor)

base class — SCA_CollisionSensor

class bge.types.SCA_NearSensor

A near sensor is a specialised form of touch sensor.

distance

The near sensor activates when an object is within this distance.

Type:

float

resetDistance

The near sensor deactivates when the object exceeds this distance.

Type:

float