LayaAir3 可否试试用这个方法this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults);,在门的前面和后面分别放两个cube,再测试一下