Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

walrusdev

1
Posts
1
Following
A member registered Jul 26, 2021

Recent community posts

can someone explain this line of code involving the raycasts in the ground detection system? That entire section is barely making any sense to me and there's barely any explanation in the guide. 

onGround = Physics2D.Raycast(transform.position + colliderOffset, Vector2.down, groundLength, groundLayer) || Physics2D.Raycast(transform.position - colliderOffset, Vector2.down, groundLength, groundLayer);

Thanks :D