Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Rays from the camera

Resources about calculating and using lines that point from the camera to positions in world space.
Read time 1 minuteLast updated 13 days ago

Resources about calculating and using lines that point from the camera to positions in world space.

Page

Description

Introduction to raycastingLearn about rays that point from the camera to a position in world space.
Cast a ray from a cameraCast a ray and fetch information about what the ray hits.
Move a camera along a rayCast a ray to a screen position, for example the mouse pointer, then move the camera along the ray.