hitObjectList
hitObjectList
Returns a list of the objects hit in the last frame.
Return type: List [ KX_GameObject ]
Sample
Code
# get the controller
controller = GameLogic.getCurrentController()
# get the sensor attached to the controller named sensor
sen = controller.sensors["sensor"]
# get a list of the objects hit in the last frame
objList = sen.hitObjectList
|