How avoid to collision between camera and the mesh?

Hello

How can I avoid the camera to pass through the wall, I mean I want to stop the camera when it reach to the wall.

chrome-capture (12)

my PG: https://playground.babylonjs.com/#2L26P1#196

Hi @TOKYO and welcome to the forum. Check out Camera Collisions | Babylon.js Documentation

2 Likes

Hi @JohnK , Thank you so much for your help. :slightly_smiling_face:

2 Likes