performance improvements to PhysicsSpace