Skip to content

Commit

Permalink
SdkSample: fix yaw axis by default
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Apr 23, 2017
1 parent 9a649dd commit 731ec75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Samples/Common/include/SdkSample.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ namespace OgreBites
mCamera = mSceneMgr->createCamera("MainCamera");
mCameraNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
mCameraNode->attachObject(mCamera);
mCameraNode->setFixedYawAxis(true);
mViewport = mWindow->addViewport(mCamera);
mCamera->setAspectRatio((Ogre::Real)mViewport->getActualWidth() / (Ogre::Real)mViewport->getActualHeight());
mCamera->setAutoAspectRatio(true);
Expand Down

0 comments on commit 731ec75

Please sign in to comment.