RaycastResult.getJoint

Returns the Joint hit during the raycast. This is only possible if RaycastResult.type is equal to "joint", otherwise this will return nil.

Kind: Function

Environments: Game

Game

raycastResult:getJoint(  )

Open the full Game reference

Parameters:

Name Type Description
raycastResult RaycastResult The raycast result.

Returns:

Type Description
Joint The joint target.