Add terrain collision.  Support visibility mask for objects and terrain.