# How can I use canon.js in three.js editor?

I would like to add bullet physics to a scene crated by the three.js editor. Where do I need to put the canon.js file in order to be able to access it's functions from the editor scripts?

I tried to declare a CANNON.World() instance in one of my editor scripts, to see if the editor is using the library, but I got an error message.

Here is what I tried beforehand:

I tried to put it in the index.html, from the published zip files. I also tried the app.js, but I figured out when you hit play in the editor it is not getting executed. So I copy pased the canon.js file under the editor/js and editor/js/libs folder, with no luck.

When I hit play I get a black square up in the LHS of the screen and it doesn't even enter play mode.

VM1178:6 Uncaught ReferenceError: CANNON is not defined