Bring your shooter game to life with realistic surface interactions!
The Piercable Object System is a complete solution for handling bullet impacts, surface detection, and penetration physics in Unity HDRP. Whether shooting at concrete walls, metal barriers, or thin wooden doors, this system ensures the correct visual and audio feedback is played every time.
Key Features:
- 🎯 Material-Based Interactions: Automatically detects surface types (Wood, Metal, Concrete, etc.) using Physics Materials and plays the appropriate particle effects and sounds.
- ⚡ High Performance: Built-in Object Pooling system for Particles and Sound Emitters ensures zero garbage collection spikes during intense gunfights.
- 🎨 HDRP Ready: Utilizes HDRP Decal Projectors for high-quality.
- 🔊 Advanced Audio System: Includes a robust Audio Manager with 3D spatial blending, random pitch/volume variations, and mixer group support.
- 🛠️ Easy to Extend: Data-driven architecture using ScriptableObjects makes adding new surfaces incredibly fast.
Workflow: Simply assign your effects to the Surface Library, verify your Physics Materials, and call the API from your weapon script. The system handles the rest!