Can I use a glb file mesh for checkCollisions?

Hi, I am trying to use a couple of planes modeled in Blender to be loaded as a glb file and then used to checkCollisions. Can someone help me with this? Thanks.

I am trying to build an Archviz sample. You can see it at https://pavilion.rajarshi.me/

Right now the camera moves past walls and other static objects. I want to restrict camera movement by providing collision meshes. I have modeled a couple of planes which I want to use as collision imposters. eg https://pavilion.rajarshi.me/forum.html

Thanks!

Welcome to the forum!

You just have to use the onSuccess callback of your SceneLoader: https://www.babylonjs-playground.com/#4AJ16M#178

1 Like

Thanks a lot Vinc3r. It Works.

1 Like