Verse API reference page for the (Player:player).DeprojectViewportToWorld extension
Transforms the given viewport space coordinates into 3D world origin and direction vectors. ViewportPosition is in centimeters: Left is the horizontal coordinate (positive rightward from the top-left corner) and Up is the vertical coordinate (positive upward, negative for points below the top of the screen). Only the Left and Up components are used; Forward is intentionally ignored because depth is unknown at the point of screen interaction — trace the returned ray against scene geometry to determine the world-space hit point at the correct depth.
Verse using statement |
using { /Verse.org/Input } |
(Player:player).DeprojectViewportToWorld<public><native>(ViewportPosition:vector3):deproject_results
Parameters
DeprojectViewportToWorld takes the following parameters:
| Name | Type | Description |
|---|---|---|
Player |
player |
|
ViewportPosition |
vector3 |
Attributes, Specifiers, and Effects
The following attributes, specifiers, and effects determine how you can interact with DeprojectViewportToWorld in your programs, as well as how it behaves in your programs and UEFN. For the complete list of attributes, specifiers, and effects; see the Specifiers Page.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.