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

Static Body Voxel Mesh is not Threadsafe #64

Open
miintTeaa opened this issue Mar 15, 2022 · 1 comment
Open

Static Body Voxel Mesh is not Threadsafe #64

miintTeaa opened this issue Mar 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@miintTeaa
Copy link

VoxelMesh accesses the scene tree and can cause errors while multithreading (if, for example, you want to use it for world generation).

This only happens when it's marked as static_body, and - from what I can tell - functions to make the generated StaticBody and CollisionShape save with the scene. Having a property to disable that would be nice and should be pretty simple.

@ClarkThyLord ClarkThyLord added the bug Something isn't working label Oct 19, 2022
@ClarkThyLord
Copy link
Owner

VoxelMesh static_body property makes it so that upon any update to its voxel content it generates and attaches a StaticBody to itself. This can create issues when wanting to use multi-threading, however, as you've mentioned yourself, toggling off static_body will cease this functionality. So I'm not too sure what additional option there could be?

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