added option to disable physics spatial hash