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

Despawned entitiy in CollidingEntities? #533

Open
kraftwer1 opened this issue Oct 14, 2024 · 0 comments
Open

Despawned entitiy in CollidingEntities? #533

kraftwer1 opened this issue Oct 14, 2024 · 0 comments

Comments

@kraftwer1
Copy link

I'm using the latest avian3d (0.1.2) with the latest bevy (0.14.2).

After despawining an entity that has a collider, CollidingEntities still lists that entity. Is this the intended behavior? Meaning that it lists all collisions that have ever happend (like a report)? Or should it only list the collisions happening right now?

This is the entity that is still listed after despawn():

commands
    .spawn((
        PbrBundle {
            mesh: meshes.add(Sphere::new(1.)),
            material: materials.add(Color::from(css::STEEL_BLUE)),
            transform: Transform::from_xyz(0., 2., 0.),
            ..default()
        },
        Collider::sphere(1.),
        CollisionLayers::new(GameLayer::Earth, [GameLayer::Spaceship]),
        Earth,
    ))
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