⚲
Class:
Camera
Lua
C++
Edit
Camera::UnProject
This method projects 2D screen coordinate to a point.
Syntax
Vec3
UnProject
(const
Vec3
& coord, shared_ptr<
Framebuffer
> framebuffer)
Parameter
Description
coord
screen coordinate, plus distance in front of camera stored in the Z component
framebuffer
framebuffer to test with
Returns
Returns a 3D position in global space.
Copyright © 2024 Ultra Software.
All rights reserved.