Collision Area Partitioner
Last updated
Last updated
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.
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.
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.
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 "" window.