QScreenRayCaster not finding entity. What am I doiong wrong?

冷暖自知 提交于 2019-12-04 13:10:43

You have to add the ray caster to the root entity as a component. You should also connect a slot to the ray caster's hitsChanged() function and display the hits from there. This way you can be sure that the caster computed the hits already.

By the way: If you have issues with Qt3D, checkout their github repository and look for the test folder. There is a folder inside with manual tests where you can see most of the functioning of Qt3D.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!