All Downloads are FREE. Search and download functionalities are using the official Maven repository.

APT.all-test.HauntBot.behavior.flee.elaborations.soar Maven / Gradle / Ivy


# compute angle to ghost/player
sp {flee*elaborate*threat-angle
   (state  ^name flee
              ^operator  +
              ^io.input-link.agent.position 
              ^entity-list.entity )
   ( ^name |Bob|
             ^position )
   ( ^x 
           ^y )
   ( ^x 
           ^y )
-->
   ( ^threat-angle (compute-heading    ))
}


# compute angle between line to node and line to ghost/player
sp {flee*elaborate*away-angle
   (state  ^name flee
              ^operator  +)
   ( ^node-angle 
        ^threat-angle )
-->
   ( ^away-angle (abs (round-off-heading (-  ) 1)))
}