Skip to content

Commit

Permalink
Added event for Rapier step
Browse files Browse the repository at this point in the history
  • Loading branch information
bbupton committed Sep 13, 2023
1 parent c0f6868 commit 9d6dbb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rapier/src/Rapier.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9d6dbb4

Please sign in to comment.