[Interest] How to set absolute Qt3D::QCamera rotation/orientation
Oleg Evseev
ev.mipt at gmail.com
Fri Jun 17 12:36:40 CEST 2016
Qt3DRender::QCamera as an QEntity has QTransform component. You can get it
with help of Qt3DCore::QTransform *transform() const function and then
setTranslation, setRotation or setMatrix for it as you wish.
Maybe that is what are you looking for?
Regards, Oleg.
2016-06-08 14:32 GMT+03:00 Ola Røer Thorsen <ola at silentwings.no>:
> I need to set a Qt3D::QCamera orientation directly. I've got the position
> in a QVector3D and the rotation in a QQuaternion. I can't seem to find any
> API for this. The "rotate"-function just adds my quaternion to the existing
> orientation which is not what I'm looking for. Is there some better way to
> do this?
>
> Cheers,
> Ola
>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160617/bb2759c6/attachment.html>
More information about the Interest
mailing list