Skip to content

Commit

Permalink
fix(physics): fix new build with Ammo
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Jan 20, 2024
1 parent b7f186b commit bba64a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/physics/Physics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class _Physics {
* Init Physics Engine
*/
public async init() {
await Ammo(Ammo);
await Ammo.bind(window)(Ammo);
this.TEMP_TRANSFORM = new Ammo.btTransform();
var collisionConfiguration = new Ammo.btDefaultCollisionConfiguration();
var dispatcher = new Ammo.btCollisionDispatcher(collisionConfiguration);
Expand Down
4 changes: 2 additions & 2 deletions packages/physics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orillusion/physics",
"version": "0.2.1",
"version": "0.2.2",
"author": "Orillusion",
"description": "Orillusion Physics Plugin, Powerd by Ammo.js",
"main": "./dist/physics.umd.js",
Expand All @@ -21,7 +21,7 @@
"url": "git+https://github.com/Orillusion/orillusion.git"
},
"dependencies": {
"@orillusion/ammo": "^0.1.1",
"@orillusion/ammo": "^0.2.0",
"@orillusion/core": "^0.7.0"
}
}

0 comments on commit bba64a1

Please sign in to comment.