RaycastResult
A userdata object representing a raycast result.
Kind: API page
Environments: Game
Game
A raycast result is a collection of data received from a raycast. The result contains information about where the raycast travelled and what objects it eventually hit.
Raycast results are the result of functions such as sm.physics.raycast, sm.physics.distanceRaycast and sm.localPlayer.getRaycast.