Set the position of a player or an object.