Pedestrianis movements and spatial cognition in urban environments are main issues for urban designers in urban spatial planning and analysis. This paper aims to study interactions between a behavioural model of pedestrians and urban spaces. The pedestrians can be represented by an agent program, and behavioural reactions of walking agents under different stimulus can be further simulated. Thus, this study suggests that, a correlation study on pedestrian behaviours and spatial environments become the criterion for urban designers in order to help them create better flows.