Open Asterune
RaycastResult

RaycastResult

Describes the first surface hit by a spatial cast.

Behavior

RaycastResult describes the first surface hit by a spatial cast.

Summary

Members5
Properties5

Properties

Distance

RaycastResult.Distance: number

The distance from the cast origin to the hit, in studs.

Instance

RaycastResult.Instance: BasePart

The BasePart hit by the cast.

Material

RaycastResult.Material: EnumItem

The material at the hit surface.

Normal

RaycastResult.Normal: Vector3

The outward surface normal at the hit position.

Position

RaycastResult.Position: Vector3

The hit position in world space.

Operators

__tostring · __type