Comments (4)
Here is an example of using it in a module, but not "as a module".
https://sbedit.net/a318767d267c7200e332e740048f00a1c45c679e
from physx-js.
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:
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.
I also created a 'physx-js-webidl' example in case you want to try out an alternative. It is also used within a module.
https://sbedit.net/41255c40b512c84951efdd0e83409ea28db2f052
from physx-js.
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:
- Basic Examples of Using Box2D-WASM with Three.js in JavaScript
- Basic Examples of Using Box2D-WASM with pure WebGL 1.0 in JavaScript
Drawing colliders in Three.js for Box2D-WASM:
from physx-js.
Related Issues (11)
- Publish all build configurations
- NVIDIAGameWorks/Blast/
- Is it possible to set combine mode of PxMaterial instance HOT 1
- Selfbuilt release has dependency to wasi_snapshot_preview1 and cannot be loaded in browser HOT 3
- Are there any metrics about performance of this library? HOT 4
- Compilation errors HOT 1
- Allow specifying which configuration to build
- Unable to npm install HOT 3
- Collision detection does not work with versions > 0.0.6 HOT 1
- emscripten.xml missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from physx-js.