We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25395d5 commit e8cdc97Copy full SHA for e8cdc97
modules/ovis/src/ovis.cpp
@@ -287,6 +287,7 @@ class WindowSceneImpl : public WindowScene
287
{
288
camman.reset(new OgreBites::CameraMan(camNode));
289
camman->setStyle(OgreBites::CS_ORBIT);
290
+ camNode->setFixedYawAxis(true, Vector3::NEGATIVE_UNIT_Y);
291
}
292
293
if (!app->sceneMgr)
@@ -541,11 +542,10 @@ class WindowSceneImpl : public WindowScene
541
542
543
void fixCameraYawAxis(bool useFixed, InputArray _up)
544
- Vector3 up = Vector3::UNIT_Y;
545
+ Vector3 up = Vector3::NEGATIVE_UNIT_Y;
546
if (!_up.empty())
547
548
_up.copyTo(Mat_<Real>(3, 1, up.ptr()));
- up = toOGRE * up;
549
550
551
camNode->setFixedYawAxis(useFixed, up);
0 commit comments