Collisions not detected for imported meshes

PS @sebavan , would this be the kind of thing you recommend using octrees collision methods to optimize for, given that the collision detection can be costly for a large/complex mesh like this?

You should definitely try and compare perf, I suspect it might be a bit faster.

1 Like

@sebavan now time for some strangeness. I copy the createScene function from your working playground (thanks again!) into my local project, but I get incredible amount of lag when I run it locally. I am using npm modules - are there any required modules outside of core that are required for the collision system to work as expected? I think the core bits are there because the fundamental collision seems to be working. But instead of 60FPS I’m at like 4 fps. I’m trying to dig into other aspects of the project that might be impacting it, but coming up short. Still digging…but in the meantime if you can think of any modules that may be needed let me know!

Nope it should be the exact same code as long as you rely on 5.0.0 preview like in the playground.