In virtual reality interfaces, realistic animation of virtual agents e
nhances human-computer interaction by supporting direct engagement in
the virtual environment. Visual programming by example allows designer
s to define animation rules by ''training'' agents, thereby building b
ehavioral rules into specification models that run automatically durin
g the execution of the virtual environment. This allows for direct and
effective replication of real-life phenomena and agent reactions to e
nvironmental stimuli.