See behavior_chart.cpp for an example of how to add your own methods seen to the script.
behavior_chart.cpp
Set number of steps: and click on Animate! to see this wonderful movie.