Gaze direction fix

This commit is contained in:
SDraw 2022-11-19 01:22:46 +03:00
parent 39c65774df
commit 5aef3ab83c
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
3 changed files with 5 additions and 5 deletions

View file

@ -85,7 +85,7 @@ namespace ml_dht
if(m_eyeTracking)
{
p_component.manualViewTarget = true;
p_component.targetViewPosition = m_camera.position + m_camera.rotation * new Vector3((m_gazeDirection.x - 0.5f) * -2f, (m_gazeDirection.y - 0.5f) * 2f, 1f);
p_component.targetViewPosition = m_camera.position + m_camera.rotation * new Vector3((m_gazeDirection.x - 0.5f) * 2f, (m_gazeDirection.y - 0.5f) * 2f, 1f);
}
// Blink