this.mMainCamera.screenPointToRay(x,y,this._ray);
if (PhysicsSystem.instance.raycast(this._ray,Contants.Collider_Group.CAR)) {
const result = PhysicsSystem.instance.raycastResults
}
result 有两个,看了下应该是同一个对象,只是 z 轴不一样,正常就是这样的吗,还是哪里设置有问题
this.mMainCamera.screenPointToRay(x,y,this._ray);
if (PhysicsSystem.instance.raycast(this._ray,Contants.Collider_Group.CAR)) {
const result = PhysicsSystem.instance.raycastResults
}
result 有两个,看了下应该是同一个对象,只是 z 轴不一样,正常就是这样的吗,还是哪里设置有问题
感谢反馈,cannon 后端默认开启了双面检测,后面的版本会把它关了