summaryrefslogtreecommitdiffstats
path: root/scene/3d/camera.h
diff options
context:
space:
mode:
authorBrian Richardson <brian@torch3d.com>2018-05-02 17:03:51 -0700
committerBrian Richardson <brian@torch3d.com>2018-05-03 11:32:37 -0700
commit680a5cbb0bd8a6753400facc469e3d9126ff92c4 (patch)
tree2b24f322d7dff5f75d023b79c6805ecfe5526e0f /scene/3d/camera.h
parent75ff86f8f5cf2364af9f12455fac2fd01bb48849 (diff)
downloadredot-engine-680a5cbb0bd8a6753400facc469e3d9126ff92c4.tar.gz
Camera::project_local_ray_normal needs to be virtual so that ARVRCamera::project_local_ray_normal gets called.
Diffstat (limited to 'scene/3d/camera.h')
-rw-r--r--scene/3d/camera.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/camera.h b/scene/3d/camera.h
index 109bf3adc6..1b506e0c4f 100644
--- a/scene/3d/camera.h
+++ b/scene/3d/camera.h
@@ -132,9 +132,9 @@ public:
virtual Transform get_camera_transform() const;
- Vector3 project_ray_normal(const Point2 &p_pos) const;
+ virtual Vector3 project_ray_normal(const Point2 &p_pos) const;
virtual Vector3 project_ray_origin(const Point2 &p_pos) const;
- Vector3 project_local_ray_normal(const Point2 &p_pos) const;
+ virtual Vector3 project_local_ray_normal(const Point2 &p_pos) const;
virtual Point2 unproject_position(const Vector3 &p_pos) const;
bool is_position_behind(const Vector3 &p_pos) const;
virtual Vector3 project_position(const Point2 &p_point) const;