add support for terrain collisions