Appletreeman
Member
I have an object that is sat in the centre of the room which slowly rotates whilst firing a laser beam. I'd like the laser beam to keep going until it hits the wall around the edge of the room so in effect it sweeps the entire room over the course of its rotation.
To start with I'm just drawing a line from the object but can't figure out how to only draw as far as the wall. I'm guessing I need a combination of point_distance and collision_point (maybe?). I feel like it should be fairly straight forward but I can't for the life of me figure it out.
If anyone could give me some help it would be gratefully received.
To start with I'm just drawing a line from the object but can't figure out how to only draw as far as the wall. I'm guessing I need a combination of point_distance and collision_point (maybe?). I feel like it should be fairly straight forward but I can't for the life of me figure it out.
If anyone could give me some help it would be gratefully received.