I’m making a top down shooter and I’m about to get started on firing guns. Ideally I want to just draw a line from the gun to the wall it hits, rather than making an actual object for the bullet.
But I have no idea how to check to see which wall the bullet will hit based on the rotation of the gun. :(
How do you do it?