JSGirald / ionic-babylon

Example showing how to use BabylonJS in an Ionic 2 application
GNU General Public License v3.0
7 stars 1 forks source link

add js files to assets folder #1

Open Jornason opened 7 years ago

Jornason commented 7 years ago

Great Job! I think add js files to assets folder will make life easier.

    <script src="assets/js/babylon.js"></script>
    <script src="assets/js/hand.minified-1.3.7.js"></script>
    <script src="assets/js/cannon.min.js"></script>
RonB commented 7 years ago

@Jornason: hi, i am new to ionic2 and was wondering where in this project the hand.minified-1.3.7.js and cannon.min.js are coming from as they are not in this repo. The ionic serve script will not copy either of the three files if they are in the src directory so thats why i presume you propose this change. I am able to run it using ionic serve but the three files are not loaded. According to your comment i presume you ran into the same problem. The app runs but the error Cannot read property 'getPhysicsPlugin' of undefined is shown, presumably because these js files are not available. Any hints would be greatly appreciated.