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

Spawn and despawn billboards #52

Closed
nixpulvis opened this issue Sep 19, 2024 · 2 comments
Closed

Spawn and despawn billboards #52

nixpulvis opened this issue Sep 19, 2024 · 2 comments

Comments

@nixpulvis
Copy link
Owner

Using Visibility::Hidden isn't enough to deal with the fact that they are children of each system. What was I thinking!

Using similar logic related to #43, we should be able to despawn and respawn billboards even while their parent system remains around.

@nixpulvis
Copy link
Owner Author

fn update(commands, camera: Query<&Camera>, systems: Query<(Entity, &System)>) {
    // forall systems, get camera distance then if:
    // distance > D remove label
    // else insert or reposition the label
}

@nixpulvis
Copy link
Owner Author

Fixed in ddbfd91

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

No branches or pull requests

1 participant