Command
cast_ray
Explore usage, syntax, and examples for the cast_ray CS2 developer console command.
cast_ray
CS2 and CSGOcast_ray
Tests collision detection by spawning a short ray from your character's position towards their viewpoint.
Yes
Server
cast_ray Generator
cast_ray
Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.
cast_ray Examples
cast_ray
Creates a visible ray from where you stand in the direction you are looking. You can generate multiple rays simultaneously, but they will fade over time.