文档

Unity Engine

Unity Engine

Rays from the camera

Resources about calculating and using lines that point from the camera to positions in world space.
阅读时间1 分钟最后更新于 1 个月前

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.