In this paper, we propose a mobility model and present its simulation tool to generate realistic mobility traces for mobile ad hoc network. The mobility model is capable of creating realistic node movement pattern in the presence of geographic constraints by exploiting the concepts of anchors. The model dynamically places anchors depending upon the context of the environment through which nodes are guided to move towards the destination, and obstacles of arbitrary shapes with or without doorways and any existing pathways, in full or part of the terrain can be incorporated which makes the simulation environment more realistic. The characteristics of the proposed mobility model tested on a real world university campus map at various movement patterns are presented that illustrate the impact of the mobility model on the performance of a routing protocol and usefulness of the proposed scenario generation tool.