Added support for basic collision checking at the scripting level.