- Home /
Is there a way to make colliders fall asleep?
I have a normal terrain with lots of trees on it. They don't tax my graphics, as long as I keep them billboard long enough, etc. But I also need them to have collision. So I created a pine tree prefab with a capsule collider and painted them onto my terrain. My framerate is normally between 40-80, but then it drops ramdomly to 3-5 fps. I know the tree colliders are the problem. (the verts and draw calls are fine)
So the question is, How can I fix this? By putting them to sleep? I don't really know how that is done. Anyone have an idea?
Answer by Eric5h5 · Sep 14, 2012 at 02:31 AM
Rigidbodies can sleep, which they do automatically (when they basically stop moving, depending on the settings you have in the physics manager). Colliders can't sleep, nor would it be possible for that to happen, since they are never "awake" either.
So is there any efficient way to keep the colliders from checking for collision when I'm not around?
I don't know of anything you can really do with tree colliders (aside from having them or not), since the terrain system handles all that.
Your answer
![](https://koobas.hobune.stream/wayback/20220613081018im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Painted trees do not take their prefab's collider 3 Answers
Enable tree colliders near you, far ones are disabled 0 Answers
How to disableTerrain Collider but keep the Tree Colliders? 1 Answer
Tree colliders in Gaia (procedural worlds) 0 Answers
How can I have mass amount of tress without performance loss? 2 Answers