Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+1)

Thanks Patrick! ๐Ÿค— You are right, the light is indeed calculated by raycasting from mirror to mirror. But it is a really hard problem to be honest and there are still edge cases in which the beam is calculated wrong ๐Ÿ˜…

But you van have a look at the source code if you want. I have to warn you it is jam code, so not the cleanest ever. But it does the job for now, although Iโ€™m convinced there must be a simpler and more elegant way of calculating reflections ๐Ÿ˜›

(+1)

That's really nice to share your code, thanks! Don't worry about the messy code, in the end of my jams I'm always adding new booleans and names or Id to the objects because i'm completely loss with the other features ;-)

(+1)

No problem! I hope it helps you find a solution for your problem ๐Ÿ˜ And yeah, it starts out clean and then you just start throwing things in there ๐Ÿ˜‚