Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Yeah, it's using LineRenderer and then raycasting from an origin point until it hits a surface, adds the hit point to the LineRenderer's array of points, then figures out the reflection vector and does another raycast, and so on until the raycast doesn't hit anything and adds a point in that last direction off beyond the screen.  I've never worked with raycasting before, so I'm learning something new!