Dmitriy
08-05-2012 11:48:04
I enabled visualDebugger to see Physics Actor which describes rigidBody. In my case it is Box which I created that way:
Now I can see bounding box around my model, but when I Moving SceneNode in frameStarted method that way:
my mesh is moving normally, but Actor(bounding box), is stand still. I thought that Actor and RigidBody connects to the same Node. What am I doing wrong???
[b]NxOgre::BoxDescription box;
box.mSize(60,100,60);[/b]
mBody = mRenderSystem->createBody(box_desc,NxOgre::Vec3(0.0f,1000.0f,0.0f),"boat.mesh",bodyDesc);
this->_hydroNode = mBody->getNode()->getSceneNode();
Now I can see bounding box around my model, but when I Moving SceneNode in frameStarted method that way:
this->_hydroNode->translate(move * evt.timeSinceLastFrame,Ogre::Node::TS_LOCAL);
my mesh is moving normally, but Actor(bounding box), is stand still. I thought that Actor and RigidBody connects to the same Node. What am I doing wrong???