从Qt3D 1.0开始,公告牌转换就停止了。现在,它被lookAt转换所取代。我已经在Qt3D context中创建了plane。(取自Qt3D example,找到here)并添加了QLookAtTransform。但两者都有:
planeEntity->lookAtTransform()->setViewCenter(cameraEntity->position());和
planeEntity->lookAtTransform()->setViewVector(cameraEntity->position());不给出任何结果。飞机从场景中消失。
类引用发现here没有解释如何使用它。
QLookAtTransform必须如何使用才能像广告牌转换一样?
https://stackoverflow.com/questions/32357154
复制相似问题