I’m making a voxel based game, and would like to know how capable UE4 is doing just that? Is there any way to “attach” 2 “blocks” together, so that they would for a single physics collisionbox, and not fall apart when force is applied (Unless |forece of block A - the force of block B| >= X) Thanks!
For anything as detailed as Minecraft, you could look at integrating/copying existing free code. But the short answer is no, it’s not possible because it’s not coded into the engine already. Setting up 10 000 physics cubes might be slow… well, maybe it’s possible.
I have been making plans to get better performance (for example, the blocks are only physical when you are on X radius from them, and when they are not visible/meaningfull, they are completely despawned and instead just stored as a variable). It will get a bit sketchy, but that’s how I like it :). Physics welding sounds. exactly what I was looking for, thanks!
If you are looking to combine cubes, you can just create your own mesh and bake in the physics. Unfortunately with this example, Epic hasn’t finished baking collisions at runtime so this code only works in the editor. It is on their list of things to do, so probably by the time you are ready for release, Epic will have it out in that future version of the engine.