This item is the core component to allow an item to break in Blade and Sorcery. This component supports GameObjects that contain the Item Script, as well as supporting components that only contain rigidbody.
<aside> 🗒️ The broken items can use the same Item ID as the broken mesh, however they can also contain different item IDs, even their own, to ensure that they have the same weight and item properties.
</aside>
This script has five buttons which assist you in setting up the breakable items automatically.
Button | Description |
---|---|
Set up handles | Automatically sets up handles between the unbroken and broken items. For the handles to link, they must be in the same rotation and position. |
Check for collider intersection | Four buttons check for this, in which it will check the item intersections between the broken items, to prevent unwanted explosion. You can check between a 10cm threshold, 5cm threshold, 1cm threshold and 0cm threshold. |
This component contains a lot of Gizmo to help you check visually if the item is set up correctly.