Data type
RaycastResult
Stores results from a raycast operation.
About RaycastResult
The RaycastResult data type stores the result of a successful
raycasting operation performed by WorldRoot.Raycast. It contains the
properties listed below.
This object should not be confused with the similarly-named
RaycastParams which is used to perform a raycast.
Properties 5
Distance
: numberThe distance between the ray origin and the intersection point.Material
: MaterialTheMaterialat the intersection point.The
Materialat the intersection point. For normal parts this is theBasePart.Material; forTerrainthis can vary depending on terrain data.Normal
: Vector3The normal vector of the intersected face.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.