Moving an object

Anyone have an idea how to move a certain object backwards after an event. Like for example, a human object bump with a wall and it needs to move a small distance away from the wall. how would you know where to set the translation of the human object?