diff options
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/camera.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/camera.cpp b/scene/3d/camera.cpp index 933f270475..1db9886261 100644 --- a/scene/3d/camera.cpp +++ b/scene/3d/camera.cpp @@ -529,6 +529,8 @@ Vector3 Camera::project_ray_origin(const Point2& p_pos) const { } + + Vector3 ray; ray.x = pos.x * (hsize) - hsize/2; ray.y = (1.0 - pos.y) * (vsize) - vsize/2; |