Can someone make a tutorial on how Raycasting works? I really have NO IDEA WHATSOEVER how to make one. I've read through a bunch of Raycaster code, but nothing helps. Thanks in advance.
Offline
I think, im not sure, but that it has a list of the walls and then it draws those and those walls set to a z y and x position... but i dont know...
Offline
Offline
Hardmath123 wrote:
Um, this doesn't really help.
Offline
maxskywalker wrote:
Hardmath123 wrote:
Um, this doesn't really help.
Oh. Sorry, I thought I had a Wiki article linked in the project notes, which would be helpful. Well, here's the link: wiki.scratch.mit.edu/wiki/Raycasting. Good luck!
PS. Revise your trigonometry. It helps!
Offline
Well i made a tutorial, it possibly the worst way to ray cast but i made it up off the top of my head
Raycaster the tutorial
Offline
slinger wrote:
Well i made a tutorial, it possibly the worst way to ray cast but i made it up off the top of my head
Raycaster the tutorial
Yeah, it is the worst way (no offense)
. PLZ don't tell me I'm stuck trying to figure out array-based raycasters (the only way I can think of how to do) on my own...
Offline