# RaycastResult.fraction

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

**Kind:** Member

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Userdata/RaycastResult.md#fraction)

### Get

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

**Returns:**

| Type | Description |
| --- | --- |
| number | The fraction (0&ndash;1) of the distance reached until collision divided by the ray's length. |
