BoatHeading
A value shape that methods take or return.
Getting one
player:sailing():boarded():heading()Fields
| Field | Type | Description |
|---|---|---|
orientation | number | The boat's orientation, 0 to 2047. |
step | number | The orientation rounded to the 16 headings a boat sails at, 0 to 15: heading k is orientation 128 * k. |
targetOrientation | number | The orientation the boat is turning to; orientation when it is not turning. |
targetStep | number | targetOrientation rounded to a heading, as step is. |
Returned by
| Method | Returns | Description |
|---|---|---|
BoardedBoat.heading | BoatHeading? | Where the boat faces and where it is turning to; nil when it cannot be read. |