Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I'ts better to use Raycast, because it you use  the collider of the rigidbody, it may be too late then collision is detected. Raycasts are longer and you can make them detect specific layers.