GMS 2 Box2D Raycasting?



Hey all,

I'm making a physics based game and need some sort of raycasting system to determine line of sight and stuff for the AI.

I know we have collision_line and those other functions, but those aren't for Box2D physics and thus won't be very accurate (or perhaps even possible) in some cases. I'm not even sure whether they would work with physics enabled...?

I thought that GameMaker would have some functionality built in for raycasting against physics fixtures, but I'm not seeing anything, not even on the marketplace. Am I missing something? How have others dealt with this?