diff --git a/cocos/physics/bullet/instantiated.ts b/cocos/physics/bullet/instantiated.ts index 26c71542e84..fe80ccd76e0 100644 --- a/cocos/physics/bullet/instantiated.ts +++ b/cocos/physics/bullet/instantiated.ts @@ -107,6 +107,7 @@ function initWASM (wasmFactory, wasmUrl: string): Promise { }).then((instance: any) => { log('[bullet]:bullet wasm lib loaded.'); bt = instance as Bullet.instance; + globalThis.Bullet = bt as any; }).then(resolve).catch((err: any) => reject(errorMessage(err))); }); }