RaycastResult.fraction
Returns the fraction (0–1) of the distance reached until collision divided by the ray's length.
Kind: Member
Environments: Game
Game
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. |