Raycast
Also called: line trace
Related terms: hitscan
Shoots an invisible line from a point in a direction and asks the physics engine what it hits first. The answer includes the object, the hit point, the distance and the surface normal there.
Used for instant-hit weapons, checking if the player is on the ground, line of sight for AI, and picking objects with the mouse.
- Further reading
- Godot: RayCast3D