summaryrefslogtreecommitdiff
path: root/scene/3d/camera_3d.cpp
diff options
context:
space:
mode:
authorMarcus Elg <marcusaccounts@yahoo.se>2020-05-10 09:00:10 +0200
committerMarcus Elg <marcusaccounts@yahoo.se>2020-05-10 12:12:51 +0200
commitec7b481170dcd6a7b4cf0e6c1221e204ff7945f3 (patch)
treebd054639c909ab4ea6c855e70ddc3b25ee2f50b0 /scene/3d/camera_3d.cpp
parentff5dfcdf68c20590bf123ade75ca06ed58276372 (diff)
Renamed plane's d to distance
Diffstat (limited to 'scene/3d/camera_3d.cpp')
-rw-r--r--scene/3d/camera_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/camera_3d.cpp b/scene/3d/camera_3d.cpp
index 871f3119bc..7d02befee6 100644
--- a/scene/3d/camera_3d.cpp
+++ b/scene/3d/camera_3d.cpp
@@ -376,7 +376,7 @@ Point2 Camera3D::unproject_position(const Vector3 &p_pos) const {
Plane p(get_camera_transform().xform_inv(p_pos), 1.0);
p = cm.xform4(p);
- p.normal /= p.d;
+ p.normal /= p.distance;
Point2 res;
res.x = (p.normal.x * 0.5 + 0.5) * viewport_size.x;