Have you tried the following solution?
vector would be the position of you object in world space.
vector