Disable Features in BabylonJS

I am trying to optimize my BabylonJS project and I want to disable some features that I do not use. By features I refer to the features panel in the editor which includes options like: physics, collisions, probes etc. I can toggle these features via the editor. Is there a method to disable them from code. Please view the attached image below for reference.

The best way to not include unneeded code is use the es6 version of babylon js and count on tree-shaking.

You can read about it here -

Babylon.js ES6 support with Tree Shaking | Babylon.js Documentation

1 Like