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

Root Node & init_root #20

Merged
merged 6 commits into from
Apr 13, 2024
Merged

Root Node & init_root #20

merged 6 commits into from
Apr 13, 2024

Conversation

aligator
Copy link
Contributor

This adds a root node, and the chunks are spawned as children of it.
You can also add a init_root function to the world configuration:

fn init_root(&self, mut commands: Commands, root: Entity) {
        commands.entity(root).insert((Name::new("physics_world"), Visibility::Hidden));
}

Copy link
Owner

@splashdust splashdust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Great addition, and nice to have a callback for customising the root entity.
Thanks again for contributing!

@splashdust splashdust merged commit 568130c into splashdust:main Apr 13, 2024
3 checks passed
@aligator aligator deleted the worldnode branch April 13, 2024 14:44
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

Successfully merging this pull request may close these issues.

2 participants