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

Collapse of towering voxels #646

Open
JekSun97 opened this issue Jun 6, 2024 · 1 comment
Open

Collapse of towering voxels #646

JekSun97 opened this issue Jun 6, 2024 · 1 comment
Labels

Comments

@JekSun97
Copy link

JekSun97 commented Jun 6, 2024

I apologize for not filling out the description, I haven’t really used your plugin yet.
But before using it, I would like to clarify the question, I want to use smooth voxels for my game (not cubic ones), and is it possible to somehow determine that a voxel weighs in the air and does not touch other voxels, for example, if we sculpt walls with a ceiling , and then remove the walls, the ceiling voxels could somehow be removed and cause earth particles in this place, is it possible to do this with your plugin?

@Zylann
Copy link
Owner

Zylann commented Jun 6, 2024

In VoxelLodTerrain, There is a function to separate floating chunks within a specified area, which will be removed from the terrain and turned into rigidbodies, which then fall over. Though I'm not sure if it will be enough if you want to base your entire game on this mechanic, it has to process every voxel at once in the area and it's more expensive the bigger the area is. It's mostly something I implemented in several days and haven't touched since. If you need tweaks or something different, you might want to do your own:

Array separate_floating_chunks(VoxelTool &voxel_tool, Box3i world_box, Node *parent_node, Transform3D transform,

@Zylann Zylann added the question label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants