This is a fairly complex topic
I am trying to make an infrared tracking system for IR missiles. I know how to do the guidance system, however, I have no clue where to start for actually making a realistic infrared seeker detect heat signature. An IR seeker has a search cone, it looks in a certain direction with infinite distance and has an angular diameter that limits how far off the target can be from its line of sight. So basically, if the angle between the direction to the target and the seeker look direction is more than a certain angle, the seeker cannot track the target.
The issue that I’m stumped on is that there can be hundreds of objects in the workspace with assigned heat signature values, and even with CollectionService, looping through all the instances with heat signature values to determine whether or not it’s within the missile seeker search cone is way too slow. It should scan several times a second. Another method I thought of was to cast a bunch of rays within the limit of the search cone to detected whether or not an object with heat signature is passing in front of the seeker, however, that isn’t viable either as a seeker can see for several kilometers out and the rays are very likely to completely miss objects because of the gaps. I honestly have no idea what to do.
I don’t know how War Thunder modeled it, but they did it very well. Nearly every moving object has a heat signature. A missile can lock on not only to the plane’s engine, but also the heated gas behind it, it can be decoyed by countermeasures (burning strips of magnesium), it can track the rocket plumes of another missile, bullet tracers, the sun, the moon at night, and even a burning tank on the ground. There is even an IRST system similar to radar. Speaking of which, radar is also very well modeled in War Thunder, it’s similar to infrared, but more impressive is the fact that even ground reflections are modeled. On normal search and track mode instead of pulse-Doppler, you can see a green haze on the radar when the radar is reflected by the ground. In addition, for both radar and infrared search, a single scan across the sky takes a fraction of a second and with the newer radars like the AWG-9, the radar can easily detect a target over 50km, so there’s noway radar and infrared are modeled using something like raycast. Anyone got any ideas? I suspect Gaijin developers use something much more low-level, similar to raytracing. Is that something that I can make on Roblox?
If you have difficulty visualizing what I’m trying to describe, please visit these YouTube videos:
Early Infrared Missiles
Radar Systems