With what you are showing, it should work. There is probably more to it than what you are giving and I suspect the problem resides in the code of the world class.
But with what you've written, it should work, so as danpost says, the problem must be somewhere else in the code. If you posted complete code it might be possible for someone to find the error.