Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Looking good Matt, really enjoy seeing the light just whizz around and bounce everywhere as I move. Was that with a raycast and then visually showing the raycast?

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!