mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-04 10:59:22 +00:00
Gaze direction fix
This commit is contained in:
parent
39c65774df
commit
5aef3ab83c
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue