|

楼主 |
发表于 2007-8-29 18:31:00
|
显示全部楼层
Re: 请问一下OGRE查询物品的问题
Plane plane;
plane.normal = Vector3::UNIT_Y;
plane.d = 100;
MeshManager::getSingleton().createPlane("Myplane",
ResourceGroupManager: EFAULT_RESOURCE_GROUP_NAME, plane,
1024,1024,32,32,true,1,60,60,Vector3::UNIT_Z);
for(int i = 0;i < 2;i++)
{
for(int j = 0;j < 2;j++)
{
Entity* pPlaneEnt = mSceneMgr->createEntity( "plane" + StringConverter::toString(i) + "_" + StringConverter::toString(j), "Myplane" );
pPlaneEnt->setMaterialName("Examples/Rockwall");
pPlaneEnt->setCastShadows(false);
SceneNode* pNode = mSceneMgr->getRootSceneNode()->createChildSceneNode(Vector3(0,0,0));
pNode->attachObject(pPlaneEnt);
pNode->setPosition(i * 1024 + 512, 0, j * 1024 + 512);
}
}
这是我的代码,创建了Entity跟SceneNode, 但是还是无法查询 |
|