Updated Mesh Colliders of all Humans and added FOV Representation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user