Appearance
types.client_rotation_event
Called when updating the player rotation
Properties
| Name | Description |
|---|---|
rotation | type: s.vector2 The current rotations (x: yaw, y: pitch) |
tick_delta | type: number The tick delta |
Functions
set_rotation(yaw : number, pitch : number)
Sets the new rotation, rotations will automatically be corrected (GCD applied, properly clamped & wrapped)
- yaw (
number) The new yaw - pitch (
number) The new pitch
