raycast (gamedev technique)

Created: Apr 05, 2023Last modified: Apr 20, 2023
No tags
Word count: 67Backlinks: 1

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.


Backlinks