Physics · class
ShuffledExecutor
Reverse order, and it is a gate rather than a character anybody should choose.
Explained in Your first game, Rigid bodies.
class ShuffledExecutor implements Executorimport { ShuffledExecutor } from '@driftengine/physics';In depth
Reversal rather than a random permutation because Math.random is banned on this path and a
seeded generator would be one more thing whose sequence has to be frozen. Reversal is the
strongest single permutation available for free: it moves every element.
Methods
run
run(count: number, solver: IslandSolver): void| Parameter | Type | Description |
|---|---|---|
count | number | |
solver | IslandSolver |
Signatures
name = "shuffled"readonly
readonly name = "shuffled"