- Home /
How do I load a scene with many colliders?
Hello,
I have 2 scenes and one is loaded with Application.LoadLevel at a specific point. If I play my scenes separately, everything works fine. My second scene has many colliders because there's a forest. When I load my second scene from my first scene using Application.LoadLevel, I have many errors like:
Unable to create broadphase entity Actor initialisation failed: returned NULL Could not create tree colliders. Maybe there are more Trees than PhysX can handle?
Do you know what I'm doing wrong? As I said before, I don't have more colliders than the limit because it works if I load scene 2 directly.
Thanks!
Answer by deathripper · Jul 01, 2014 at 06:39 PM
Have you checked this post, it might help you. http://answers.unity3d.com/questions/269496/unable-to-create-broadphase-entity.html
Yes, I already checked on this page. However, this page describes the issue as if it was happening everytime the level is loaded (even if it is the first level that Unity loads) but my problem happens only when I load my scene with Application.LoadScene.
I can also make it work when loading my scene with no terrain and instantiating the terrain later (with GameObject.Instantiate) but I was wondering why it won't work with Application.LoadLevel.