From 54a68f7558ab699653f790b66421c2b212eafd8c Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 15 Aug 2024 14:33:55 +0800 Subject: [PATCH] export Bullet (#17539) * export Bullet --- cocos/physics/bullet/instantiated.ts | 1 + 1 file changed, 1 insertion(+) 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))); }); }