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

Destructible light sources #62

Open
2 tasks
Tracked by #3
SkoggsTrollet opened this issue Jul 14, 2021 · 0 comments
Open
2 tasks
Tracked by #3

Destructible light sources #62

SkoggsTrollet opened this issue Jul 14, 2021 · 0 comments

Comments

@SkoggsTrollet
Copy link
Collaborator

SkoggsTrollet commented Jul 14, 2021

Definition of done

  • (Idea 1) Use colliders for area covered by light source. If light source goes out the collider is turned on. Everything inside collider is considered in darkness.
  • (Idea 2) Raycast from each active light source to each entity. If all raycasts can't reach an entity it is in darkness. Taking out a light source stops it from sending out raycasts to entities.
@SkoggsTrollet SkoggsTrollet mentioned this issue Jul 14, 2021
6 tasks
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