# sm.localPlayer.getRaycastStart

Returns the start position of the local player's raycast. The position depends on the [camera](../Game-Script-Environment/Static-Functions/sm.camera.md)'s position, and whether it's in first- of third-person.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.localPlayer.getRaycastStart(  )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.localPlayer.md#getraycaststart)

**Availability:** Client only

**Returns:**

| Type | Description |
| --- | --- |
| [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The start position of the raycast. |
