Rigorous recursive raycast #488
Labels
area: data
Things related to the data structures underlying the world, and the functions that manipulate them.
kind: incomplete
A feature is partially implemented; the current state of the code is inconsistent
We have a function called
recursive_ray
, which is used by the raytracer and cursor to descend into a block's voxels. It is just implemented as:However, this approach is subject to floating-point error (I think; a test case proving that would be good). Instead, we should build it directly into
RaycastStep
so that it can generate a childRaycaster
with exactly the right state, guaranteeing that it will step through at least one voxel that lies on the surface of the relevant block (as opposed to, say, entirely missing the block by passing diagonally through an edge of its bounds).The text was updated successfully, but these errors were encountered: