the mouse mCameraMan not entity simon?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
tuongtndg
Gnoblar
Posts: 1
Joined: Fri Dec 01, 2017 2:32 am

the mouse mCameraMan not entity simon?

Post by tuongtndg »

After search in the forum and try different solution i don't understand because if i write in the code:

mCamera = mSceneMgr->createCamera("Camera");
mCamera->setPosition(0,20,0);
mCamera->lookAt(-100,0,0);
mCamera->setNearClipDistance(5);


mCameraMan = new OgreBites::SdkCameraMan(mCamera); //controller
nodoCamera=this->mSceneMgr->getRootSceneNode()->createChildSceneNode();

Ogre::Entity* simon = mSceneMgr->createEntity("Simon", "SimonG2.mesh");
simon->setMaterialName("simon");

nodoSimon=nodoCamera->createChildSceneNode("nodoSimon",Ogre::Vector3(10,-10,0));
nodoCamera->attachObject(mCamera);
nodoSimon->attachObject(simon);


When i move the mouse mCameraMan move the camera but not the entity simon?
please help me :? :? :?
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: the mouse mCameraMan not entity simon?

Post by paroj »

this is fixed in Ogre 1.10.
Post Reply