06-03-2025, 05:51 AM
An accurate collision detection would be with: a for loop, an initial position and a final position
where, the for loop loops from the initial position to the final position and checks if there is an obstacle in between...
much similar to raycasting, do optimizing algorithms for this is the DDA.
You can use KeyUp = "W"... and reassign "s" -> "x" (or toggle with "e")
where, the for loop loops from the initial position to the final position and checks if there is an obstacle in between...
much similar to raycasting, do optimizing algorithms for this is the DDA.
You can use KeyUp = "W"... and reassign "s" -> "x" (or toggle with "e")