Collision Area Partitioner
Collision Area Partitioner is used to predefine possible collision areas, find what vertices are inside each of the area and save it in a CollisionAreasDataSO scriptable object.
1. Add the component

2. Assign a scriptable object to work with
This component requires scriptable object to already be created. To create a new scriptable object, type the name in the "Collision Areas SO Name" field and click "Create New CollisionAreasDataSO" button. By default it will be saved to the "CustomVehicleController/VehicleController/VehicleParts/CollisionAreas", but you can change it in the "Package Settings" window.

3. Assign the Vehicle Body Mesh Filter

4. Add new Collision Areas to the List

Give this collision area a name for easier identification. Set the Center, Height, Width and Length properties to cover the area that you are interested in, like the left side, hood, roof, etc.

5. Partition the Mesh
After you are done, click the "Partition the Mesh into Collision Areas" button

The CollisionAreasDataSO scriptable object is ready to be assigned to the VehicleDamageController.
Last updated