From 7895c12d0d25f2978e41754a4bcafe5bd3326727 Mon Sep 17 00:00:00 2001 From: "G.Doisy" Date: Thu, 26 Dec 2019 16:36:50 +0100 Subject: [PATCH] fix_x_y_camera --- libstage/model_camera.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstage/model_camera.cc b/libstage/model_camera.cc index d306c8a36..6496c2b5a 100644 --- a/libstage/model_camera.cc +++ b/libstage/model_camera.cc @@ -183,7 +183,7 @@ bool ModelCamera::GetFrame(void) float height = GetGlobalPose().z; // TODO reposition the camera so it isn't inside the model ( or don't draw the // parent when calling renderframe ) - _camera.setPose(parent->GetGlobalPose().x, parent->GetGlobalPose().y, + _camera.setPose(GetGlobalPose().x, GetGlobalPose().y, height); // TODO use something smarter than a #define - make // it configurable _camera.setYaw(rtod(parent->GetGlobalPose().a) - 90.0