GithubHelp home page GithubHelp logo

physx-js as ES6 module about physx-js HOT 4 CLOSED

ashconnell avatar ashconnell commented on May 30, 2024
physx-js as ES6 module

from physx-js.

Comments (4)

Sean-Bradley avatar Sean-Bradley commented on May 30, 2024

Here is an example of using it in a module, but not "as a module".

image

https://sbedit.net/a318767d267c7200e332e740048f00a1c45c679e

from physx-js.

8Observer8 avatar 8Observer8 commented on May 30, 2024

It is very cool! Thanks a lot! I moved your example to Plunker: https://plnkr.co/edit/c8Pvr7oBlq1B4kAj?preview

I like this Playground very much because it can keep code in the separated files:

image

It works on mobiles very well.

I think it is important to add this code to the index.html:

    <!-- Since import maps are not yet supported by all browsers, its is
        necessary to add the polyfill es-module-shims.js -->
    <script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>

from physx-js.

Sean-Bradley avatar Sean-Bradley commented on May 30, 2024

I also created a 'physx-js-webidl' example in case you want to try out an alternative. It is also used within a module.

image

https://sbedit.net/41255c40b512c84951efdd0e83409ea28db2f052

from physx-js.

8Observer8 avatar 8Observer8 commented on May 30, 2024

It is awesome! It is very important to be able to draw colliders. I will rewrite your example later to draw colliders with Three.js and pure WebGL.

I already have made an example that draws colliders with Three.js and pure WebGL for Box2D-WASM:

Drawing colliders in Three.js for Box2D-WASM:

debug-drawer-box2dwasm-threejs

from physx-js.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.