Ok, so I've read Permadi's tutorial on Raycasting(http://www.permadi.com/tutorial/raycast/index.html), and I'm having a little bit of confusion over 2 things.
First of all, it mentions that you can calculate the subsequent angles by adding 60/320 to the angle. However, it is also recommended that you put your values into an array that has already rendered all of your cos, sin, and tan values. My question is how can I access the correct value, because the angle that I use as an index (prev+60/320) isn't an integer. Should I just cast the value without regard for accuracy?
Secondly, the tutorial also mentions correcting the fisheye effect by multiplying the distance by beta. Should beta always be 30/-30, or is it simply your current angle/2? -Thanks