I am coding a small Javascript/ HTML-canvas Wolfenstein style game. I am following Permadi tutorial. For now I did suceed to implement the textured wall raycasting. What I want to do now is to do the floor raycasting. As far as I understand, when I finish to draw a slice of wall, I have to check if it reaches the
Tag: raycasting
three.js Highlighting the edge of a cube on hover LineSegmentsGeometry
I am using LineSegmentsGeometry and LineMaterial to create thick cube edges. I want to change the color of the edge on hover. This code only works if using thin lines with LineBasicMaterial. Can I do it somehow with bold lines? I also have other shapes with this logic sandbox here https://codesandbox Answer You can do it with fat lines! LineSegmentsGeometry