[Interest] QEntity & QTransform
Andy
asmaloney at gmail.com
Wed Apr 5 20:57:22 CEST 2017
If I understand your question, there's no need to remove/add the component
- just change the QTransform. Everything will update using magic.
---
Andy Maloney // https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>
On Wed, Apr 5, 2017 at 2:50 PM, Igor Mironchik <igor.mironchik at gmail.com>
wrote:
> Hello guys,
>
> Is it normal practice?
>
> removeComponent( d->m_transform );
>
> d->m_transform->setScale( 0.5f );
>
> addComponent( d->m_transform );
>
> If I want to apply changed transformation...
>
> Or for such tasks there is a better solution?
>
> _______________________________________________
> 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/20170405/867e5125/attachment.html>
More information about the Interest
mailing list