elitic
02-12-2009 00:35:03
Hello everyone, The problem is that physics are shaking with no reason.
This is happening in my game project and while using wiki tutorial (http://www.ogre3d.org/wiki/index.php/BloodyMess_Tutorial_3_Source).
To achieve shaking effect I just copy tutorial 3 code and add such lines:
Also comment out:
And the result is: (YouTube Video showing this problem)
Another problem is when I try to add custom „wheel“, code:
The „wheel“ is acting weirdly... : (Another YouTube video)
Debug build isn't problem, because release build has same „effect“.
I think both problems are from same source, but I have no Idea how to fix them...
This is happening in my game project and while using wiki tutorial (http://www.ogre3d.org/wiki/index.php/BloodyMess_Tutorial_3_Source).
To achieve shaking effect I just copy tutorial 3 code and add such lines:
for (int a=1;a<=5;a++)
{
mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Vec3(10, a, 10), "cube.1m.mesh");
}
Also comment out:
//mCube = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Vec3(0, 40, 0), "cube.1m.mesh");
//mCubeTwo = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Vec3(20, 45, 0), "cube.1m.mesh");
//mCubeTwo->addForce(NxOgre::Vec3(-800, -200, 0), NxOgre::Enums::ForceMode_Force, true);
And the result is: (YouTube Video showing this problem)
Another problem is when I try to add custom „wheel“, code:
NxOgre::ResourceSystem::getSingleton()->openArchive("media", "file:media");
mRenderSystem->createBody(new NxOgre::Convex( NxOgre::MeshManager::getSingleton()->load("media:wheel_shape.nxs") ), NxOgre::Vec3(0,50,10),"wheel_shape.mesh");
The „wheel“ is acting weirdly... : (Another YouTube video)
Debug build isn't problem, because release build has same „effect“.
I think both problems are from same source, but I have no Idea how to fix them...