Added _world == null test for inline onCamera function