collinhover/impactplusplus

lineOfSight(checkForEntities) method?

Opened this issue · 4 comments

There's a few things I'm doing in my current project where I need a 'lineOfSIght' method that checks for entities as well. (I have moving platforms which are, of course entities).

I'm not sure how to go about implementing it so if anyone else wants to do it I'd appreciate it ;P

No eta on adding this, but it is on my list of additions.

I'm adding in a hidden property to entities, as well as methods hide and unhide to set this property. Currently accounting for this property are: all the methods that get entities, creatures with their prey and predators, and the line of sight method. This may not do exactly what you want, but I am still planning on adding a check for entities in the line of sight method.

@afflicto Check out this post and this repo