You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>Document</title></head><body><canvasid="renderCanvas" width="400" height="400"></canvas><!-- Since import maps are not yet supported by all browsers, it is necessary to add the polyfill es-module-shims.js Source: https://threejs.org/docs/index.html#manual/en/introduction/Installation --><scriptasyncsrc="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script><scripttype="importmap">{"imports": {"gl-matrix": "https://cdn.skypack.dev/gl-matrix@3.4.3","box2d": "https://dl.dropboxusercontent.com/s/08259caxtfqryce/box2d-2.3.1.min.js"}}</script><scripttype="module" src="./js/main.js"></script></body></html>
I try to create an instance of b2Draw class:
But I have this error:
Uncaught (in promise) cannot construct a b2Draw, no constructor in IDL
My example on Playground: https://plnkr.co/edit/v6CsfLVHn7Tkeg3Q
Full code of the example:
index.html
js/debug-drawer.js
js/init-box2d.js
js/main.js
The text was updated successfully, but these errors were encountered: