Detect obstacles (collision mask configurable from the editor). Align cells with the floor (collision mask configurable from the editor). Hide distant cells to focus on the relevant area. Calculate ...