RaycastResult.fraction

Returns the fraction (0–1) of the distance reached until collision divided by the ray's length.

Kind: Member

Environments: Game

Game

Open the full Game reference

Get

Returns the fraction (0–1) of the distance reached until collision divided by the ray's length.

Returns:

Type Description
number The fraction (0–1) of the distance reached until collision divided by the ray's length.