Documentation / @debuffjp/tilemap / move
Function: move()
move(
map,body,dx,dy,options?):MoveResult
Defined in: collide.ts:43
Move a body through the map, stopping at solid tiles. X then Y are resolved separately, and long moves are split into tile-sized sub-steps so fast bodies never tunnel. One-way tiles only block a body moving down whose bottom started at or above the tile's top (plus oneWayTolerance). Mutates body.x/y.
Parameters
map
body
dx
number
dy
number
options?
MoveOptions = {}