Volume Constraints Destruction Detector¶
This detector, when attached to a GameObject with an Actor component, will monitor the simulation mesh for the destruction of volume constraints. When a volume constraint specified within a group is destroyed, the VolumeConstraintsDestroyed event of that group will be triggered.
To make it easier to select the volume constraints that you want to monitor, we have created a custom editor tool. To enable it click on the tool icon in the scene toolbar:
Once enabled an overlay will appear on the scene, from which you can select the group that you want to edit.
When a group is selected you can left click on the volume constraints you want to add to that group (red color) or shift + left click to remove them.
Additionally, you can hide the volume constraints in the group, by enabling the ‘Hide Selected Volume Constraints’ option to allow selection of volume constraints that are behind them.
Warning
To be able to use the tool, you must have at least one group created. If no groups are created you can create one by clicking the ‘+’ button in the group list in the inspector.