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 -1 and 1 and also it's a periodic value.

  • sin(x * frequency), the x is hidden and it's the second unit

...

  • the frame value and be hidden here

By default, it control all agents. It 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)

...

  • sine function return value
  • sine function freq:?? return value for example sine function freq:2 return value

Sentences 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)

...

  • sine function with my id return value
  • sine function freq:?? with my id return value for example sine function freq:1.5 with my id return value

 

Note: the higher frequency the faster change the value