unity3d 这个地面检查系统是包括在统一启动器资产第三人控制器,但现在它不工作了,为什么?

ddrv8njm  于 2022-11-16  发布在  其他
关注(0)|答案(1)|浏览(102)

我什么都没发现。这是地面检查Grounded = Physics.CheckSphere(spherePosition, GroundedRadius, GroundLayers, QueryTriggerInteraction.Ignore);我怎么修它?

os8fio9y

os8fio9y1#

回答由hanisherif1997_统一中的统一论坛:https://answers.unity.com/questions/1579825/physicschecksphere-not-working.html基本上将player的层遮罩更改为新层,如“Character”,否则如果为Default,则其player的碰撞器在checkSphere中发生碰撞

相关问题