Miarmy Crowd Simulation Documentation (English)
Sine Function
Sine is a very simple math tool can return value between -1 and 1 and also it's a periodic value.
- sin(x * frequency), the x is 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
- 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
- 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
Basefount Technology