Scripts for collision detection.