Commit e8cdc970 authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: use fix camera yaw axis to -y by default

also remove superficial CS conversion in fixCameraYawAxis
parent 25395d51
......@@ -287,6 +287,7 @@ public:
{
camman.reset(new OgreBites::CameraMan(camNode));
camman->setStyle(OgreBites::CS_ORBIT);
camNode->setFixedYawAxis(true, Vector3::NEGATIVE_UNIT_Y);
}
if (!app->sceneMgr)
......@@ -541,11 +542,10 @@ public:
void fixCameraYawAxis(bool useFixed, InputArray _up)
{
Vector3 up = Vector3::UNIT_Y;
Vector3 up = Vector3::NEGATIVE_UNIT_Y;
if (!_up.empty())
{
_up.copyTo(Mat_<Real>(3, 1, up.ptr()));
up = toOGRE * up;
}
camNode->setFixedYawAxis(useFixed, up);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment