Thread: (Co)Sines
View Single Post
Old 08-06-2009, 11:26 AM   #4
DTR
Member

Activity Longevity
0/20 17/20
Today Posts
0/11 sssssss94
Location: Helsinki, Finland
Default

Casted a floor for a raycaster with sine and it, as well as use it to calculate the "real" distance to the intersection of ray and wall line instead of getting the horrible fishbowl effect inducing "distorted" distance.

Not particularly "cool" but handy.

http://img91.imageshack.us/img91/232/mehr.png

Last edited by DTR : 08-06-2009 at 11:31 AM.
DTR is offline   Reply With Quote