sm.localPlayer.setDirection
Sets the direction of where the player is viewing or aiming. Intended to be used when the controls have been locked. (See sm.localPlayer.setLockedControls)
Kind: Function
Environments: Game
Game
sm.localPlayer.setDirection( direction )
Availability: Client only
Parameters:
| Name | Type | Description |
|---|---|---|
direction |
Vec3 | The world direction. |