Keeping a material "upright"

This is an image of what I mean, I tried your adivce Frepp73 but it is not quite what I am looking for. In the image think of the actor as the grey box. I require the texture to move with the actor in world space but to always remain upright. So if the box was to roll the arrow texture would always need to be pointing straight up.