cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

[Bug 3.8.2] Two BoxColliders fails to emit 'onTriggerEnter' event when using PhysX backend

Open elysia-best opened this issue 1 year ago • 0 comments

Cocos Creator version

3.8.2

System information

Windows 11 22621.3155

Issue description

Two BoxColliders fails to emit 'onTriggerEnter' event when using PhysX backend.

When the option in the Project Setting was changed to cannon.js or something else, this issue won't appear.

Interestingly, when we only set one collider as trigger, the behaviour is correct.

P.S. Two Colliders were both set to Kinematic.

There isn't any info in the debug console.

简洁版:用PhysX物理引擎时,两个设置为Trigger的Collider不能正确碰撞

Relevant error log output

No response

Steps to reproduce

用提供的工程即可复现。 记得更换为PhysX

Minimal reproduction project

DebugPhysX.zip Just Change the backend to PhysX

elysia-best avatar Feb 17 '24 15:02 elysia-best