Generate a bunch of box2d bodies to match a grid backed by ndarray-continuous
Generate a bunch of box2d bodies to match a grid backed by ndarray-continuous.
npm install continuous-box2d
Pass Box2D to the module to get back a
Generates and removes bodies to
world as chunks are added/removed to the
field. Takes the following options:
data: A callback to modify the
userDatathat gets attached to each body.
xscale: the horizontal scale of the grid, in cell units to box2d units. Defaults to 1.
yscale: the vertical scale of the grid. Defaults to 1.