0

I want to be able to do a simple raycast in my Pygame project to check for objects between two points.

My idea is that I will use Pygame masks to check for collision.

This by creating a surface between point A and B and check for collision between this surface and other objects masks. That way I would be able to find out if there's anything blocking the raycast.

However I have only worked with rectangular surfaces and have no idea what to do if the line between point A and B are diagonal.

Zoler1337
  • 108
  • 5

0 Answers0