C++ 获取Irrlicht中的节点位置 我玩了run()。 sphere_cur_pos = (*cur_node).getAbsolutePosition(); Set initial vectors !Set node New sphere is at (1, 1, 1) Hello World
程序的输出是C++ 获取Irrlicht中的节点位置 我玩了run()。 sphere_cur_pos = (*cur_node).getAbsolutePosition(); Set initial vectors !Set node New sphere is at (1, 1, 1) Hello World,c++,irrlicht,C++,Irrlicht,程序的输出是 Set initial vectors !Set node New sphere is at (2.70951e-35, 37135.9, 2.83893e-29) Hello World 如果我交换 sphere_cur_pos = (*cur_node).getPosition(); 与 我把它作为输出 Set initial vectors !Set node New sphere is at (1, 1, 1) Hello World 这两个输出都与addSphere
Set initial vectors
!Set node
New sphere is at (2.70951e-35, 37135.9, 2.83893e-29)
Hello World
如果我交换
sphere_cur_pos = (*cur_node).getPosition();
与
我把它作为输出
Set initial vectors
!Set node
New sphere is at (1, 1, 1)
Hello World
这两个输出都与addSphereSceneNode()
中的向量设置无关。我做错了什么?在检查坐标之前,请尝试调用device->run()
。
sphere_cur_pos = (*cur_node).getAbsolutePosition();
Set initial vectors
!Set node
New sphere is at (1, 1, 1)
Hello World