Skip to content

Update Vectors.md #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/globals/Vectors/Vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,12 @@ vectors.toCameraSpace(vec(1, 2, 3))

Converts a position in the world into a position relative to the viewer's screen

The first and second elements of the returned Vector4 are the x and y positions where `-1 .. 1` is
the range between the edges of the screen.
The third element is `>1.0` when looking at the world position and `<1.0` when
looking away.
The fourth element is the distance of the screen from the world position.

<Tabs>
<TabItem value="overload-1" label="Overload 1">

Expand Down