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);Discussion 0
Join free to post in the discussion.
Related questions
- Frame-rate independent movementGame Developer
- Where to apply physics forcesGame Developer
- Collecting a coinGame Developer
- Checking if the player is groundedGame Developer
- Value returned by LerpGame Developer
- Awake or Start firstGame Developer
- What a prefab isGame Developer
- Waiting two seconds in a coroutineGame Developer