Partiially working Timeslot-change and Heat Reciever on Targets

This commit is contained in:
Thorbjoern
2025-07-19 13:02:31 +02:00
parent 13cd053279
commit 9fd840a8f8
43 changed files with 2571 additions and 263 deletions
@@ -24,12 +24,11 @@ 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))
if ( hitObject.GetComponent<RecieveHeat>() != null)
{
hitObject.GetComponent<QuadScript>().addHitPoint(hit.textureCoord.x, hit.textureCoord.y);
hitObject.GetComponent<RecieveHeat>().AddHeat(0.02f);
}
}
}