• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Box2D Raycasting?

D

djrain

Guest
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?
 
Top