【问题标题】:Using setAutoTracking() in Ogre graphics在 Ogre 图形中使用 setAutoTracking()
【发布时间】:2013-05-24 00:52:34
【问题描述】:

我希望我的忍者在移动时跟随另一个忍者。我的方法有效,只是它的背面朝向移动的物体而不是它的来源。谁能帮帮我

Ogre::Vector3 theOffset(30, 0, 0);
mSceneMgr->getSceneNode("NinjaNode1")->setAutoTracking(
        true, mSceneMgr->getSceneNode("NinjaNode2"),Ogre::Vector3::UNIT_Z,theOffset);

我想我需要使用偏移量,但我真的不习惯使用 vector3 设置位置...谁能翻转我的角色,使正面朝向移动的物体...谢谢

【问题讨论】:

    标签: c++ graphics rotation autorotate ogre


    【解决方案1】:

    尝试将 setAutoTracking 的第三个参数从 UNIT_Z 更改为 NEGATIVE_UNIT_Z。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-19
      • 1970-01-01
      • 1970-01-01
      • 2011-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多