[COLOR=#000000][FONT=verdana]I’m trying to simulate a light ray (which you can assume is just a rotated rectangle) hitting a wall (another rectangle, also could be rotated). I’ve gotten the collision detection working, but am not sure how to make the light ‘stop’ when it hits the wall. How would I ‘cut off’ the part of the light ray which is past the wall and only leave the first part visible? [/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]Maybe something to do with masks, but I’m clueless.[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]Thanks![/FONT][/COLOR]