diff --git a/packages/rapier/src/Rapier.js b/packages/rapier/src/Rapier.js index 0b9063e4..5a8fd64c 100644 --- a/packages/rapier/src/Rapier.js +++ b/packages/rapier/src/Rapier.js @@ -157,9 +157,11 @@ export const AM_RapierWorld = superclass => class extends superclass { actor.set({translation, rotation}); } catch (e) { console.error(e) } }); // https://github.com/dimforge/rapier/issues/516 + this.publish("rapier", "worldStep"); // bbu: for Unity bridge if (!this.doomed) this.future(this.timeStep).tick(); } + }; RegisterMixin(AM_RapierWorld);