Поддержание зрительного контакта с GameObject на Hololens 2 с помощью UnityC#

Место общения программистов 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
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «C#»