summaryrefslogtreecommitdiff
path: root/src/sim/cell/materials/sand.rs
blob: d2d1265051bac0125acbd8a6e519ee1d68b495b9 (plain)
1
2
3
4
5
6
7
8
9
10
use crate::sim::cell_sim::sim::UpdateCtx;

#[inline]
pub fn sim_update(ctx: &mut UpdateCtx) {
    ctx.candidates_swap(&[
        (0, 1),
        (-1 + 2 * ctx.seqno_parity as i32, 1),
        (1 - 2 * ctx.seqno_parity as i32, 1),
    ]);
}