Unified Simulation, Perception, and Generation of Human Behavior