求助cast函数检测不到碰撞体
unity2d吧
全部回复
仅看楼主
level 1
飞起来😡
楼主
跟着B站教程做的,在这里isgrouded一直是false,在碰撞检测函数的IsGrounded = touchingCol.Cast(Vector2.down, castFilter, groudHits, groundDistance)>0中,Cast返回的一直是0,不知道为什么,今天崩溃后重新开了项目就变成Cast取不到正值了
2023年09月15日 11点09分
1
level 5
烦的很wws
代码看看
2024年01月11日 03点01分
2
level 5
烦的很wws
你贴出来的是封装过的射线检测吧,看看怎么实现的
2024年01月11日 03点01分
3
1