Just Cause 2: Multiplayer
Website
Home
/
Lua
/
Client
/
Render
/
Functions
/
ScreenToWorldDirection
Returns
Vector3
Prototype
Render:ScreenToWorldDirection(
Vector2
position
)
Description
Transforms a screenspace position to the corresponding directional vector in 3D space.
Examples
Drawing 3D models on the screen, such as an arrow pointing to some position.
Raycasting the world to spawn objects wherever you click.