Skip to content

Commit

Permalink
fix(physics): use globalThis instead of global
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaisthorpe committed Jul 23, 2023
1 parent b8054dc commit 5d6add5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ted/src/physics/worker/dynamic-world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class TDynamicWorld {
constructor(private onWorldUpdate: (bodies: TPhysicsBody[]) => void) {}

public async create(config: TWorldConfig): Promise<void> {
ammo = await ammo.bind(global)();
ammo = await ammo.bind(globalThis)();

const collisionConfiguration = new ammo.btDefaultCollisionConfiguration();
const dispatcher = new ammo.btCollisionDispatcher(collisionConfiguration);
Expand Down

0 comments on commit 5d6add5

Please sign in to comment.