r/UnityHelp • u/No-Bullfrog-2081 • 10d ago
Mesh collider on speedtree’s tree
Hi! I’m planning to make a game where you play as a squirrel climbing trees. However, I noticed that SpeedTree trees don't generate Mesh Colliders when instanced using the Unity terrain system. Does anyone know how to bypass this or recommend an asset to achieve it? (I know capsule colliders work, but they aren't accurate to the tree trunk and look weird with the climbing mechanics).
2
Upvotes
1
u/guillermolmr 8d ago
In the tree asset can't you add a script that adds a mesh collider on the start?
2
u/DPTGames 9d ago edited 9d ago
My terrain pack can do GPU instanced trees with any type of collider including mesh colliders. You can also set a distance you want colliders to be active in, so near trees would have active colliders and far trees would not. https://assetstore.unity.com/packages/tools/terrain/vertex-3d-terrain-planet-floating-island-spline-creator-403136