Unity
- 8 ответов
- 0 вопросов
5
Вклад в тег
LayerMask hitLayers = LayerMask.GetMask(“Objects”) | LayerMask.GetMask(“Player”) | LayerMask.GetMask(“Terrain”);
Physics.CheckSphere(transform.position, sphereRadius, hitLayers)
Physics.CheckSphere(transform.position, sphereRadius, LayerMask.GetMask(“Objects”))