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

Oxidizer refuses to generate colliders of child NavMeshAffectors. #28

Open
HeavyBro1337 opened this issue Jul 8, 2024 · 0 comments
Open

Comments

@HeavyBro1337
Copy link

HeavyBro1337 commented Jul 8, 2024

Hello, I'm experiencing the problem where somewhat the plugin doesn't generate NavMesh at all if the entity is a child of scene.
I verified that the collider as non-child entities are generated properly.

   // doesn't work
    .with_children(|parent| {
        for (collider, transform) in colliders.iter() {
            parent
                .spawn((
                    collider.clone(),
                    TransformBundle::from_transform(*transform),
                    NavMeshAffector,
                ));
        }
// that works
    for (collider, transform) in colliders.iter() {
        commands.spawn((
            collider.clone(),
            TransformBundle::from_transform(*transform),
            NavMeshAffector,
        ));
    }
  • Ivan Korchmit
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