Skip to content
RED SAGSkills
medium10 pts · first answer countsphysicsunitydebugging

Raycast ignores the Ground layer

Ground is on layer 8. Why does this raycast miss the ground?

bool hit = Physics.Raycast(transform.position, Vector3.down,
                           out RaycastHit info, 2f, 8);
Choose one answer