Skip to content

Commit

Permalink
Shorten Vector3 explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketasaja committed Jan 26, 2025
1 parent 6afb955 commit 0d427a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/config/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ Zap supports `vector`s with any numeric component types. The Z component is opti
Omitting all components will emit `vector(f32, f32, f32)`.
<CodeBlock code="type Position = vector" />

Zap also supports serializing Vector3s, although zap has both a Vector3 type and a Vector2 type. Zap does not allow the use of Vector2s, and instead only allows Vector3s as Vector2s don't use Luau's native vector type and instead are allocated on the heap. And thus, Zap's Vector2 type is almost the same as the Vector3 type, except it doesn't serialize the Z axis.

Zap also supports serializing `Vector3`, and to not serialise the `Z` property of a `Vector3`, you can use the `Vector2` type.

## DateTimes

Expand Down

0 comments on commit 0d427a1

Please sign in to comment.