Runtime CSG: Booleans, Shatter & Denting
Leon Twemlow
$24.75
$27.50
10%OFF
(no ratings)
Jump AssetStore
High-performance runtime CSG tool for Unity. Perform fast Mesh Booleans (Union, Subtract, Intersect), Voronoi shattering, and impact mesh deformation—all accelerated by the C# Job System & Burst.Runtime CSG & Destruction ToolkitRuntime CSG & Destruction Toolkit is a high-performance C# Job System & Burst-accelerated framework for performing real-time Constructive Solid Geometry (CSG) Boolean operations, procedural mesh shattering, and impact-driven mesh deformation directly in Unity at runtime.Whether you are building destructible environments, real-time cutting mechanics, bullet denting, or procedural slicing, this toolkit provides a lightweight, dependency-free solution designed for high frame rates and zero main-thread hitches.⚡ Key FeaturesRealtime CSG Boolean Operations Perform Union, Subtraction, and Intersection operations between meshes dynamically during gameplay. Fast broad-phase spatial checks and robust triangle-clipping pipelines.Procedural Voronoi Shattering & Fracture Instantly shatter 3D meshes into physics-driven Voronoi cell fragments. Control fragment count, noise amplitude, scale, and surface jitter for realistic fracture edges.Built-in fragment self-collision management to prevent PhysX depenetration explosions. Velocity inheritance allows shattered fragments to maintain parent momentum seamlessly.Impact Mesh Deformation & DentingDeform mesh geometry in real-time based on collision velocity and impact force.Smoothfalloff calculations create realistic dent craters for metal, wood, or soft surfaces.Configure hardness thresholds, maximum indentation depths, and dent radii.Asynchronous Physics RebakingOffloads Physics.BakeMesh to background threads for asynchronous MeshCollider updates without stalling render threads.Intuitive Editor ToolingIncludes a dedicated Editor Window (CSG Editor Window) and custom inspectors for quick setup, testing, and component management in the Scene View.🚀 Performance & ArchitectureC# Job System & Burst Accelerated: Heavy spatial calculations and mesh deformations are multithreaded across all available CPU cores.Zero External Dependencies: Pure C# and Unity Mathematics codebase.Platform Agnostic: Works on PC, Console, Mobile, and VR/AR.🛠️ CompatibilityUnity Versions: Supports Unity 6+.Render Pipelines: 100% compatible with URP, HDRP, and Built-in Render Pipeline.Core Features & SpecificationsFull C# Source Code: Complete, clean, well-commented source code included (no precompiled DLLs).Job System & Burst Acceleration: Core CSG broad-phase, mesh splitting, classification, and vertex deformation powered by C# Jobs (IJobParallelFor) and Burst compilation ([BurstCompile]).Memory Optimization: Uses native unmanaged buffers (NativeArray, NativeList) to eliminate Garbage Collection (GC) allocations during runtime operations.Async Physics Baking: Offloads mesh collider generation using Physics.BakeMesh on background threads.Assembly Definitions: Modular RuntimeCSG.Runtime and RuntimeCSG.Editor assemblies included for clean project compilation.Package ContentsCore Runtime Scripts: CSG.cs, VoronoiShatter.csComponents: CSGShatterable.cs, CSGTarget.cs, CSGCutter.cs, DeformableObject.csParallel Jobs: BroadPhaseJob.cs, ClassificationJob.cs, DeformMeshJob.cs, SplitJob.cs, ReconstructionJob.csMath & Geometry: RobustPredicates.cs, CSGMesh.csEditor Tools: CSGEditorWindow.cs, CSGMenu.cs, DeformableObjectEditor.csDemo Resources: Sample scene, custom shader settings, and example prefabs.Technical Requirements & DependenciesUnity Package Dependencies:com.unity.burst (1.8.0+)com.unity.mathematics (1.2.0+)com.unity.collections (1.2.0+)Unity Version Support: Unity 6+.Render Pipeline Compatibility:Built-in Render Pipeline (100% Compatible)Universal Render Pipeline / URP (100% Compatible)High Definition Render Pipeline / HDRP (100% Compatible)Supported Target Platforms:Standalone (Windows, macOS, Linux)Mobile (iOS, Android)Consoles (PlayStation 4/5, Xbox One / Series X|S, Nintendo Switch)XR (Meta Quest, Apple Vision Pro, OpenXR)Documentation: https://leontwemlow.notion.site/Runtime-CSG-Boolean-Mesh-Toolkit-v1-1-Documentation-Technical-Manual-3ad1f841ce15808eb65dc9099a75828c

