Running physics in a webworker

A simple test-PG using native Ammo.js and an inline worker:
https://playground.babylonjs.com/#N7PGG3#2

It uses cloning of objects when sending through postMessage(Not even serializing it using JSON!)

4 Likes