What is a Spherecast?
What is Linecast?
A linecast is an imaginary line between two points in world space. Any object making contact with this line can be detected and reported. This differs from the similar raycast in that raycasting specifies the line using an origin and direction.
What is Ray in unity?
A ray is an infinite line starting at origin and going in some direction.
What does raycasthit2d return?
Description. Information returned about an object detected by a raycast in 2D physics. A raycast is used to detect objects that lie along the path of a ray and is conceptually like firing a laser beam into the Scene and observing which objects are hit by it.