Interaction between egocentric and allocentric frames of reference