Updated Mesh Colliders of all Humans and added FOV Representation

This commit is contained in:
Thorbjoern
2025-07-16 00:02:07 +02:00
parent 8e711ca067
commit 74f2ecabd2
38 changed files with 7876 additions and 44 deletions
@@ -24,11 +24,13 @@ public class EyeTrackingCollisionPoints : MonoBehaviour
if ( hitPoint != null && Physics.Raycast(transform.position, rayCastDirection, out hit, rayDistance, layersToInclude))
{
hitPoint.transform.position = new Vector3(hit.point.x, hit.point.y, hit.point.z);
GameObject hitObject = hit.collider.gameObject;
if (hit.collider.GetType() == typeof(MeshCollider))
{
hit.collider.gameObject.GetComponent<QuadScript>().addHitPoint(hit.textureCoord.x, hit.textureCoord.y);
hitObject.GetComponent<QuadScript>().addHitPoint(hit.textureCoord.x, hit.textureCoord.y);
}
}
}
@@ -38,3 +40,4 @@ public class EyeTrackingCollisionPoints : MonoBehaviour
return hitPoint.transform;
}
}