Thanks
Eva
Hi Eva,
JS API
SDK ver 7.0.0
I don't using any extensions
Hi Eduard,
currently there is no hit-test api for drawables.
Please note that the Wikitude JS SDK is not optimized for advanced games.
For this use-case we have a Unity plugin which you could use.
Best Regards,
Alex
Hi Alex,
Is there any way to make smth similar in Wikitude JS SDK without using Unity plugin?
Or is there any possibility that this feature will be availabe soon in newer releases?
Edward
Solved.
Just simulate click in screen center.
http://www.wikitude.com/developer/developer-forum/-/message_boards/message/571887
Eduard Ulasenka
Hi,
I am writing a shooter game in JavaScript API 7.0 on Android, and in this game I have some models (soldiers) and a gun scope on the screen which always has center in the screen's center.
Is there a good way to check whether I "killed" a soldier when I pressed fire button? I mean that want to check if the scope was directed to some of soldiers or not when i fired.
I tried to use something like this:
But it's not always gives me a result.
Is there a better whey to do this?
Thanks in advance!