WxSand Physics File - subversion 1

From FSG Wiki

Jump to: navigation, search

Subversion 1

Subversion 1 is very linear and works like this:

Element lines

Elements are seperated by double line-breaks. After each element line, a number of interaction lines follow. Each element is declared as follows:

Element	Red	Green	Blue	Density	Slip	Gravity	Death	Rate
  • Element is the element name
  • Red is the red value for display
  • Green is the green value for display
  • Blue is the blue value for display
  • Density determines which elements float and sink in other elements
  • Slip determines how much it slides apart and levels out
  • Gravity is how fast it falls
  • Death is what element it becomes when dying
  • Rate is the probability of death

Inetraction lines

Neighbor interactions are done as follows right after the line declaring the first element

Neighbor	Result	Neighbor-Result	Probability
  • Neighbor is the element that it must be adjacent to
  • Result is what the first element becomes
  • Neighbor-Result is what the neighbor becomes
  • Probability is the odds of the reaction