sungoco
15-10-2009 05:16:21
create ogre3dbody code:
move code:
NxOgre::ResourceSystem::getSingleton()->openArchive("media", "file:E:/work/Game/Player_v2.0_Source/Player/Bin/Media");
NxOgre::Mesh* triangleMesh = NxOgre::MeshManager::getSingleton()->load("media:ninja.nxs");
NxOgre::TriangleGeometry* triangleGeometry = new NxOgre::TriangleGeometry(triangleMesh);
m_body = RenderSystem->createBody(triangleGeometry, position, meshName);
move code:
m_body->getSceneNode()->translate(direction * deltaTimeSecs * walkSpeed);