From 4287b7b2d263bb30dd998e92e9f55004e6b96693 Mon Sep 17 00:00:00 2001 From: GuoLei1990 Date: Thu, 15 May 2025 17:41:22 +0800 Subject: [PATCH] fix: physics --- packages/core/src/physics/PhysicsScene.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/physics/PhysicsScene.ts b/packages/core/src/physics/PhysicsScene.ts index 872d81d22..c2bd1ccdc 100644 --- a/packages/core/src/physics/PhysicsScene.ts +++ b/packages/core/src/physics/PhysicsScene.ts @@ -241,7 +241,7 @@ export class PhysicsScene { throw new Error("Collision layer must be a single layer (Layer.Layer0 to Layer.Layer31)"); } - return PhysicsScene._nativePhysics.getColliderLayerCollision(index1, index2); + return Engine._nativePhysics.getColliderLayerCollision(index1, index2); } /** @@ -257,7 +257,7 @@ export class PhysicsScene { throw new Error("Collision layer must be a single layer (Layer.Layer0 to Layer.Layer31)"); } - PhysicsScene._nativePhysics.setColliderLayerCollision(index1, index2, isCollide); + Engine._nativePhysics.setColliderLayerCollision(index1, index2, isCollide); } /**