RaycastResult
Describes the first surface hit by a spatial cast.
Behavior
RaycastResult describes the first surface hit by a spatial cast.
Summary
Members5
Properties5
The distance from the cast origin to the hit, in studs.
The BasePart hit by the cast.
The material at the hit surface.
The outward surface normal at the hit position.
The hit position in world space.
Properties
Distance
RaycastResult.Distance: numberThe distance from the cast origin to the hit, in studs.
Instance
RaycastResult.Instance: BasePartThe BasePart hit by the cast.
Material
RaycastResult.Material: EnumItemThe material at the hit surface.
Normal
RaycastResult.Normal: Vector3The outward surface normal at the hit position.
Position
RaycastResult.Position: Vector3The hit position in world space.
Operators
__tostring · __type