add rect collide test for objects and camera