Simple raycast test.
P#128652 2023-04-17 08:05 ( Edited 2023-04-18 04:44)
2
be aware that your current code is quite slow - there is no need to iterate over pixels to find a hit, this should be done in grid space - suggest to look at how a typical raycasting engine solves that.
example: https://www.permadi.com/tutorial/raycast/rayc7.html
P#128699 2023-04-18 06:35
Hi,nice implementation! I did one a while ago, i don't which one is more suitable though: https://www.lexaloffle.com/bbs/?tid=49151
P#128702 2023-04-18 10:17
[Please log in to post a comment]