Поддержание зрительного контакта с GameObject на Hololens 2 с помощью Unity ⇐ C#
Поддержание зрительного контакта с GameObject на Hololens 2 с помощью Unity
I need to create a c# script for unity that checks if the player is maintaining eye contat with a GameObject (the check function is called in the Update() function)
However when I tried to do this it didn't work, at best it was fine when i watched in the general direction of the object but it didn't consider the height of the object.
Side Note, the object is always 1.5 units above the camera, but it can be moved and so can the player (don't know if this infos can help).
Sadly I don't have any code since I tried to do this some days ago and deleted the scripts. I'm using Hololens 2020.3.34 and MRTK 2.8.
Источник: https://stackoverflow.com/questions/781 ... with-unity
I need to create a c# script for unity that checks if the player is maintaining eye contat with a GameObject (the check function is called in the Update() function)
However when I tried to do this it didn't work, at best it was fine when i watched in the general direction of the object but it didn't consider the height of the object.
Side Note, the object is always 1.5 units above the camera, but it can be moved and so can the player (don't know if this infos can help).
Sadly I don't have any code since I tried to do this some days ago and deleted the scripts. I'm using Hololens 2020.3.34 and MRTK 2.8.
Источник: https://stackoverflow.com/questions/781 ... with-unity
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Приложение для сканирования QR Unity для HoloLens 2 DONE не обнаруживает QR -код
Anonymous » » в форуме C# - 0 Ответы
- 6 Просмотры
-
Последнее сообщение Anonymous
-