Voxel Destruction

Atan

(3)
$9
Publisher Atan
File size 3.00MB
Number of files 264
Latest version 1.3.12
Latest release date 2023-03-13 12:59:55
First release date 2022-12-19 02:11:14
Supported Unity versions 2018.4.2 or higher

Feel free to try it out yourself here: https://atan-games.itch.io/unity-voxeldestruction


Voxel Destruction allows game developers to bring their projects to life with dynamic and immersive gameplay. With the ability to create destructible voxel objects using greedy meshing directly from MagicaVoxels .vox files, this package is versatile and compatible with a variety of platforms, including PC, mobile, and more. It utilizes the Unity Job system to ensure fast and efficient performance, and features vertex-colored meshes. It also contains a prebuilt sound manager, first person Movement and Voxel Intercollision. And with the ability to run mesh calculations in parallel on multiple cores, this package is not only powerful, but also highly efficient.


Features:


→ Directly load from MagicaVoxels .vox files: This Package allows you to model anything in the free Voxel Modeling Software "MagicaVoxel" and then save it in the StreamingAsset folder and directly load them in Unity.


→ Supported Platforms:

Windows: ✔️

Linux: ✔️ Tested on Ubuntu and Fedora, should work on most distros

Android: ✔️ Note: Streaming Assets don't work as expected on aab files, but it works fine with apk

WebGL: ✔️ Uses Webrequests to read Streaming Assets

VR: ❔ I have tested it on a Oculus quest 1 and it worked, but I can't guarantee that it works on all headsets.

MacOS and IOS: ❓ Not tested, I can't guarantee that it works


→ Greedy Meshing: It is using a fast Greedy Meshing algorithm that combines neighboar faces together to save processing Power.


→ Sound: The Package contains a basic SoundManager script that allows to play sounds on position, randomize pitch of sound and more.


→ Movement: The demo also includes a basic first person movement, that I created. You can also download it here.


→ Performance: The Package is using the Unity Job system to make the Greedy Meshing calculations multithreaded, you can choose between a simple Job a ForJob and a ParallelForJob.


→ Multiple models: You can create multiple models in the same vox file, this will imporve performance as it allows to split the Mesh calculation in smaller parts.


→ Voxel Intercollision: Voxel Objects can collide with each other and have rigidbodys attached to them.


4 types of destruction:


➾ Passive Voxel Removal: The destroyed voxel is removed from the mesh, a particle effect can be added.


➾ Active Voxel Removal: The destroyed voxel is removed from the mesh and recieves his own instantiated cube.


➾ Voxel Fragmentation: Several voxel get selected to form a new voxel fragment that is removed from the mesh and made a physic object.


➾ Precalculated Fragments: Fragments get precalculated in the editor, uses a job to find nearest fragments.


This Package is using: BetterStreamingAsset and VoxReader

The Greedy Meshing algorithm is similar to the one in CloneCraft

Top Publisher Assets