我什么都没发现。这是地面检查Grounded = Physics.CheckSphere(spherePosition, GroundedRadius, GroundLayers, QueryTriggerInteraction.Ignore);我怎么修它?
Grounded = Physics.CheckSphere(spherePosition, GroundedRadius, GroundLayers, QueryTriggerInteraction.Ignore);
os8fio9y1#
回答由hanisherif1997_统一中的统一论坛:https://answers.unity.com/questions/1579825/physicschecksphere-not-working.html基本上将player的层遮罩更改为新层,如“Character”,否则如果为Default,则其player的碰撞器在checkSphere中发生碰撞
1条答案
按热度按时间os8fio9y1#
回答由hanisherif1997_统一中的统一论坛:https://answers.unity.com/questions/1579825/physicschecksphere-not-working.html基本上将player的层遮罩更改为新层,如“Character”,否则如果为Default,则其player的碰撞器在checkSphere中发生碰撞