libgdx / box2dlights

Fork of box2dlights by Kalle Hamalainen
Apache License 2.0
255 stars 82 forks source link

Convenience method to get a light source's area #69

Closed adam-law closed 9 years ago

adam-law commented 9 years ago

Box2dlights does all the magic under hood, computing lit areas from light sources automatically, which make it really great.

There are some situations, where the area lit by the light source, is useful, especially if it is the computed end-result i.e. collision with blocking areas. I know that, recently, there were convenience methods added for checking for points within a lit / shadowed area, but having the actual area to work with opens up a lot of things.

Can this information be exposed for use?

adam-law commented 9 years ago

I figured out a way, so this is not needed anymore. Thanks.