A Framework for Simulated Crowd Behavior in Virtual Environments