A list of techniques for game dev - patterns and features used to accomplish common tasks.
See: game dev techniques
A raycast is a fast collision check along a straight line.
It is useful for determining line-of-sight for an entity, i.e., can this entity see something along this line?
It can also be used to see if an entity is near a wall or floor. For example, it's helpful to determine if the walking goomba should turn around or not.