Page 1 of 1

BlockingLines array

Posted: Tue Sep 10, 2019 2:54 pm
by comet1337
for iterating through multiple simultaneous BlockingLines, mainly for normalizing the angle results on corner collisions
because currently (ex bouncing projectiles) can take one line of a corner and use it for calculating the bounce, even if its more to the other side of said corner, and trying to bounce away from the farther one gets clipped inside the wall

Re: BlockingLines array

Posted: Tue Sep 10, 2019 3:52 pm
by Matt
I think this can already be done modder-side with some LineTracers and a thinker.
EDIT: yes, BlockLinesIterator since it appears only to check the lines in a given area rather than having to go through the entire map every time.

Re: BlockingLines array

Posted: Tue Sep 10, 2019 4:11 pm
by Major Cooke
BlockLinesIterator is already in.