Runtime CSG: Booleans, Shatter & Denting
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.
by Leon Twemlow
Price History +
Runtime CSG & Destruction Toolkit
Runtime 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 Features
- Realtime 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 & Denting
- Deform 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 Rebaking
- Offloads Physics.BakeMesh to background threads for asynchronous MeshCollider updates without stalling render threads.
- Intuitive Editor Tooling
- Includes a dedicated Editor Window (CSG Editor Window) and custom inspectors for quick setup, testing, and component management in the Scene View.
🚀 Performance & Architecture
- C# 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.
🛠️ Compatibility
- Unity Versions: Supports Unity 6+.
- Render Pipelines: 100% compatible with URP, HDRP, and Built-in Render Pipeline.