KX_NearSensor(KX_TouchSensor)

base class — KX_TouchSensor

class bge.types.KX_NearSensor(KX_TouchSensor)

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

Previous topic

KX_NavMeshObject(KX_GameObject)

Next topic

KX_NetworkMessageActuator(SCA_IActuator)