Raycasting is the use of intersection tests to solve problems in ROBLOX. The most common use of raycasting is to determine the first object intersected by a ray. This is done by casting a virtual ray from a certain point in a direction and determining the first surface it intersected with. ROBLOX has Ray values, which are used by the engine to represent the origin and direction of rays. These rays can be created with the Ray.new function: The method, which is a method of the Workspace, returns two values: the part the ray hit, if it hit one, and the point at which the part was hit.
| Graph IRI | Count |
|---|---|
| http://dbkwik.webdatacommons.org | 4 |