Uploaded March 2022 | Updated November 2026, 3 hours ago
This is a tutorial on how to implement a physics engine alongside webxr. It makes use of the depth api to create a mesh that is places within ammo.js (the physics engine). If you have any comments let me know.
live demo (mobile chrome):
graemeniedermayer.github.io/ArExperiments/html/depthPhysics.html
code:
github.com/graemeniedermayer/ArExperiments/blob/main/javascript/depthPhysics.js
mesh video:
youtube.com/watch?v=ReZTypXQuPs
resources:
github.com/kripken/ammo.js
youtube.com/channel/UCEwhtpXrg5MmwlH04ANpL8A (simondev)
This is a tutorial on how to implement a physics engine alongside webxr. It makes use of the depth api to create a mesh that is places within ammo.js (the physics engine). If you have any comments let me know.
live demo (mobile chrome):
graemeniedermayer.github.io/ArExperiments/html/depthPhysics.html
code:
github.com/graemeniedermayer/ArExperiments/blob/main/javascript/depthPhysics.js
mesh video:
youtube.com/watch?v=ReZTypXQuPs
resources:
github.com/kripken/ammo.js
youtube.com/channel/UCEwhtpXrg5MmwlH04ANpL8A (simondev)










