WxSand Physics File - subversion 1
From FSG Wiki
[edit]
Subversion 1
Subversion 1 is very linear and works like this:
[edit]
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
[edit]
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
