So let's say I have two objects and a bunch of walls or other obstructions on screen. What would be a way to see if the two objects (sprites, cursor and a sprite, etc) have a clear, unobstructed line of sight to each other (like the line of sight feature in Heroscape if there are any fans out there
)? I tried extending a sf::FloatRect from one object to the next, and seeing if that collided with any of the wall objects, but you can't rotate floatrect objects so that won't work. Any other ideas?