265

Creating Behaviors
Behaviors

  • Every behavior contains:
  • An initialize method

  • Code to run, contained within a processStimulus method

  • Wakeup conditions controlling when to run next
  • Respecified on each wakeup
  • Scheduling bounds controlling scheduling
  • When the viewer's activation radius intersects the bounds, the behavior is scheduled