Skip to content

Commit

Permalink
Fix incorrect binary CFrame docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler committed Sep 28, 2023
1 parent 8c4328e commit ada04a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,11 @@ The `CFrame` type is more complicated than other types. To save space, there are

If the byte is `00`, a `CFrame` looks like this:

| Field Name | Format | Value |
|:------------|:------------------------|:-----------------------------------------------------------------------------------------------------|
| ID | `u8` | Always `00` in this case. |
| Orientation | Array of 9 `f32` values | The rotation matrix of the `CFrame`. It represents the XVector, YVector, and ZVector, in that order. |
| Position | [`Vector3`](#vector3) | The position of the `CFrame`. |
| Field Name | Format | Value |
|:------------|:------------------------|:-------------------------------------------------------------------------------------------------------------------|
| ID | `u8` | Always `00` in this case. |
| Orientation | Array of 9 `f32` values | The rotation matrix of the `CFrame`. Contains the components `R00 R01 R02 R10 R11 R12 R20 R21 R22`, in that order. |
| Position | [`Vector3`](#vector3) | The position of the `CFrame`. |

In this case, the `Orientation` field is stored as nine untransformed [IEEE-754 standard](https://en.wikipedia.org/wiki/Single-precision_floating-point_format) 32-bit floats.

Expand Down

0 comments on commit ada04a5

Please sign in to comment.