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

Mesh collisions are not updated after mutating an entity's mesh #42

Open
nicopap opened this issue Mar 23, 2022 · 0 comments
Open

Mesh collisions are not updated after mutating an entity's mesh #42

nicopap opened this issue Mar 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@nicopap
Copy link

nicopap commented Mar 23, 2022

bevy_mod_raycast version: 0.3
Bevy version: 0.6
OS & graphic stack: ArchLinux kernel 5.16.2

Problem

This is a copy of an upstream bug reported in bevyengine/bevy#4294.

When I update an entity's mesh, either by (1) changing it's Handle<Mesh> or (2) updating the mesh itself in the Assets<Mesh>, the plugin doesn't account for the change in mesh value.

This is because bevy never updates the Aabb of an entity after the initial spawn of a mesh.

Current Workaround

As a user of this library, manually update the Aabb after updating the mesh, by setting the Aabb component of you rmesh entity to the result of the Mesh::compute_aabb method.

@aevyrie aevyrie added the bug Something isn't working label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants