Tool for generating colliders for trees created using the built-in Tree Editor.
This package will let you add a new component called TreeCollider. It will use data from the tree and generate a mesh collider or capsule colliders for each spline. You may store colliders on the prefab or generate them temporary during play.
Every spline on every branch will be used to create capsule colliders. (Needs to be pre generated for builds)
A collision mesh will be extracted from your tree mesh (bark) to create a mesh collider.
If enabled, existing colliders will be kept.
If not, colliders will be replaced with generated colliders during play.
What layer the generated colliders should have.
What physics material the generated colliders should have.
Another component that can be added to only enable the colliders if a collider with the specified layer is inside the trigger zone. This feature can be a way to reduce the amount of active objects in a scene.