Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sine is a very simple math tool can return value between 0 and 1 and also it's a periodic value.

...

Channel with "all" suffix: control all, means all agents have same phase, all the agents will get the same value, also have same period

  • sin_all()
  • sin_all(<frequency>) for example sin_all(2)

Channel with "agents" suffix: randomize phase on each agents, different agent will get the different value due to the randomized phase. But all of them have the same period

  • sin_agent()
  • sin_agent(<frequency>) for example sin_agent(1.5)

Note, the higher frequency the faster change the value