BT-DestructX 2D: Intelligent Multi-Algorithm Fragmentation & Destruction System
Instantly shatter any 2D sprite with 5+ intelligent algorithms (Voronoi, Slice, Grid). Creates dynamic, physics-based destruction effects.
by Barkin Tufan
Price History +
Elevate Your Game's Impact with Advanced 2D Destruction
Stop using simple particle effects for destruction. BT-DestructX 2D gives you the power to dynamically shatter any sprite into real, physics-based fragments. This system provides the intelligent, multi-algorithm approach seen in high-end 2D titles, allowing you to create satisfying destruction for any object from brittle glass and splintered wood to shattering rock.
🎯 Core Fragmentation Engine
- Intelligent Multi-Algorithm System: Go beyond simple grids. Choose from 5 distinct algorithms to match your object's material:
Voronoi: Creates natural, cell-like patterns perfect for rock, glass, and organic surfaces.
Slice: Shatters objects along parallel lines, ideal for blade cuts or directional impacts.
Radial: Explodes objects outward from a center point, perfect for explosions.
Irregular Polygon: Generates randomized, chunky fragments for a chaotic look.
Grid: A classic, uniform fragmentation for mechanical or simple objects. - Impact-Aware Slicing: Automatically detects the impact direction to orient Slice fragments dynamically.
- Smart Texture Sampling: Each fragment is created from the original sprite's texture, ensuring visual consistency.
- Optimized Collider Generation: Automatically generates a BoxCollider2D and Rigidbody2D for every fragment, ready for physics simulation.
🚀 Dynamic Physics & Interaction
- Advanced Force Control: Fine-tune the physics of every shatter. Control the base Explosion Force, add an Upward Force Multiplier for a satisfying "pop," and apply Random Torque for realistic rotation.
- Full Physics Customization: Set the Mass, Gravity, and Air Resistance for all fragments to simulate different material weights.
- "Settle & React" System: Fragments don't just disappear. They can settle on ground layers, become isKinematic to save performance, and then realistically react by re-enabling physics if the "Player" tag touches them.
- Intelligent Ground Interaction: Fragments have adjustable Ground Bounce and Ground Friction. They also feature an anti-penetration check to prevent them from getting stuck inside ground colliders.
🎨 Visual Lifecycle & Effects
- Automatic Lifecycle Management: Define a Fragment Lifetime to ensure fragments are automatically cleaned up and destroyed.
- Configurable Fade & Scale: Enable smooth Fade Out and Scale Down effects. These can be configured to start after a delay, or specifically when the fragment has landed on the ground.
- Custom Visual Overrides: Easily override the original sprite's appearance. Tint all fragments with a uniform Fragment Color or apply a custom Fragment Material for stylized effects like "ghost" or "hologram" destruction.
🎮 Easy Integration & Control
- Flexible Trigger System: No coding required for simple setups. Automatically trigger fragmentation when the object is OnDestroy or OnDisable.
- Full Scripting API: Manually trigger fragmentation with TriggerFragmentation(). You can even pass in a precise Vector2 impactPoint to make the explosion originate from an exact pixel—perfect for bullet hits.
- Clean, Tabbed Inspector: A professional, easy-to-use custom editor organizes all settings into logical tabs (General, Fragment, Physics, Visual, Triggers) for a rapid workflow.
- Runtime Control: Enable or disable the entire fragmentation system at runtime with a single API call (SetFragmentationEnabled).
🛡️ What You Get
- Full C# Source Code
- 5 Fragmentation Algorithms in one powerful component.
- Comprehensive documentation.