在使用 irr::scene::ISceneManager::addCameraSceneNode(…);函数(function)的时候, 若想要使用setRotatioin()或者setTarget()控制摄像机(camera)拍摄视角的话, 需要使用
irr::scene::ICameraSceneNode::bindTargetAndRotation(bool bound)[pure virtual]并设置其参数bound = true才能使setRotation()或setTarget()起作用.
使用方法: bound = true;实施绑定,bound = false;解除绑定
注: 除了irr::scene::ISceneManager::addFPSCameraSceneNode(…)获得的摄像机(camera)是对该方法(bindTargetAndRotation(bool bound))为默认使用之外, 其余方式生成的摄像机都没有使用该方法, 因此要手动添加.
在Irrlicht中,通过`ISceneManager::addCameraSceneNode`创建摄像机节点时,需使用`ICameraSceneNode::bindTargetAndRotation`并设置`bound`为`true`,才能使`setRotation`和`setTarget`生效。通常,`addFPSCameraSceneNode`默认已绑定,其他方式需手动绑定。解除绑定则将`bound`设为`false`。
1478

被折叠的 条评论
为什么被折叠?



