What does raycast mean?

In game development, raycast means a check in which the game sends an invisible straight line from a point in a direction to find what it hits first.

ˈreɪkæstnounAdvanced term

Game Development vocabulary · Physics & Animation

It is used for shooting, line of sight and ground detection.

In Turkish: raycast, ışın testi, ışın gönderme

Also used in: Software Engineering

How it is used

Also a verb: raycast from the camera to the mouse position. Programmers talk about a raycast hitting or missing, ray length and layer masks. Hitscan weapons, which hit instantly, are usually made with raycasts.

Example sentences

  1. We do a short raycast down from the feet to check if the player is on the ground.

  2. The enemy raycasts to the player before shooting, so it never shoots through walls.

Common collocations

  • cast a ray
  • raycast hit
  • layer mask
  • hitscan weapon

More terms: Physics & Animation

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: