WorldToScreen
Go from world (3D) coordinates to screen coordinates (2D).
Function
Sym3Vec3 WorldToScreen(x, y, z)
Parameters
- x (number): The x coordinate in worldspace.
- y (number): The y coordinate in worldspace.
- z (number): The z coordinate in worldspace.
Return Value
Returns a Sym3Vec3. The X and Y components are screen coordinates, while the Z is distance between the camera and the given world position.
Remarks
This function can also just take a single Sym3Vec3 as an argument.