You need to do what Yggdrasil has said. Take the offset and add it to the player. You can see these two images to visualize the idea behind the offset math.