swim prototype 3 scripts for avatar control