Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
adam-law opened this issue Jul 18, 2015 · 1 comment
Closed

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

adam-law opened this issue Jul 18, 2015 · 1 comment

Comments

@adam-law
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant