Collision physics for the camera

Hello! I see you’re mixing the camera’s checkCollisions with physics, which isn’t supported, see: Combining Camera Controller with Cannon Physics - #5 by RaananW

Another observation is that it’s better to attach the mesh to the camera as its child, not its parent. The reason for that is when we move the camera through the controls, only its position is updated, which means the parent won’t be updated. But if you update any element’s position, all of its childrens’ positions will automatically be updated: Camera bump | Babylon.js Playground (babylonjs-playground.com)

2 Likes