惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
罗磊的独立博客
博客园 - 司徒正美
Last Week in AI
Last Week in AI
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
B
Blog
博客园 - 【当耐特】
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - zhucde

一句话的解释 给场景添加一个背景 ATI显卡中不能使用CG的变态原因 ORA-28000: the account is locked Oracle10g, EM中,ERROR: Wrong password for user ActiveX中嵌入Flash, 在IE中调用时, 与Flash的交互问题 Ogre中解决中文路径和中文文件名的方法 [转贴]c/c++ struct union 对齐方式 OpenGL程序 转为Opengl ES 的一点建议glDrawArray和glDrawElements [陆续更新] IPhone中编译Ogre源码及使用 宏定义中"#"的用法 - zhucde - 博客园 Ogre控件在网页中调用的问题 在3D中, 将世界坐标映射为屏幕上的坐标点 更新一下道路的最新效果,处理了边缘, 加入了Shader光照 OGRE中新做的火焰和爆炸 刚刚从CSDN的博客搬家过来, 有些文章的内容逐步完善, 请多多谅解! 在Ogre中使用DirectShow来播放视频--重新封装并测试通过(已完整) 新加的一个天空的效果. (已完整) [OGRE]继续完善道路-----道路两侧物体匹配(已完整)
子节点(ChildNode)设置WorldPostion
zhucde · 2011-02-26 · via 博客园 - zhucde
if(m_SceneManager->hasEntity("knot"))
	{

		Entity *pent=m_SceneManager->getEntity("knot");
		SceneNode *parentNode=pent->getParentSceneNode();
	//	SceneNode *parentNode=m_SceneManager->getRootSceneNode();
		SceneNode *pNode=parentNode->createChildSceneNode();

		static int newentflag=0;
		newentflag++;
		String name="newentflag_"+StringConverter::toString(newentflag);
		Entity *newEnt=m_SceneManager->createEntity(name,"sphere.mesh");
		pNode->attachObject(newEnt);
		pNode->setPosition(parentNode->_getDerivedOrientation().Inverse()*(pt-parentNode->getPosition())/parentNode->getScale());
		pNode->setScale(0.01,0.01,0.01);
	}

childNode->setPosition(ParentNode->_getDerivedOrientation().Inverse()*(需要设置的WorldPostion-parentNode->getPosition())/parentNode->getScale());