mik14a / VOX4U

MagicaVoxel VOX Format import plugin for Unreal Engine 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Destructible Mesh

ruohki opened this issue · comments

No Issue

How did you create that blocky destructible meshes?

commented

Hi @ruohki .
UnrealEditor able to build a DestructibleMesh from StaticMeshes using NVidia Apex functions without a PhysXLab app.
'SetupChunksFromStaticMeshes' function called by 'Import FBX Chunks' in destructible actors editor window.
That function need array of StaticMesh.
I'm using that function; simple way create cubed RowMesh from each voxel and build a array of StaticMesh.
https://github.com/mik14a/VOX4U/blob/master/Source/VOX4UEditor/Private/VoxelFactory.cpp#L245

Oh great got it working but when fracturing (destroying) a voxel DM the whole game starts to freeze for a little amount of time.