Skip to content

Commit 438093f

Browse files
committed
Fix setter for camera position in VSG visualization
1 parent d6e976f commit 438093f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/gui/guihelperVSG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ void GUIImplVSG::Init(UI& ui, chrono::ChSystem* system, const char* title) {
6969
}
7070

7171
void GUIImplVSG::SetCamera(double x, double y, double z, double dirx, double diry, double dirz) {
72-
pVis->AddCamera({x, y, z}, {dirx, diry, dirz});
72+
pVis->SetCameraPosition({x, y, z});
73+
pVis->SetCameraTarget({dirx, diry, dirz});
7374
}
7475

7576
bool GUIImplVSG::IsRunning(double timestep) {

0 commit comments

Comments
 (0)