Perfect! Creative mode! You know what’s next now…
AHH Ur breakin my brain
THIS IS AWESOME
how’d you do the click raytracing for interaction?
1 Like
render() uses traceRay() to trace a ray into a block, and so I made the clicking do the same thing. traceRay() returns a number[] like this [face, distance, face x, face y, voxel index, voxel x, voxel y, voxel z] and when placing a block, it adds/subtracts 1 to voxelX/voxelY/voxel and sets the block. Did that help?
1 Like