I am currently trying to develop a radar for discrete event simulation purposes. Suppose I have 2 objects Sensor S and Target T which are simply just points on screen. S is equipped with a Frustum based on specific parameters provided such as sensing distance, angle, ratio etc. That part I have already managed to develop. To put things into perspective, the Frustum begins from point S, and both S and T will move about randomly. The idea is for S to be able to detect T at discrete steps. Since S and T were programmed to move about linearly, discrete steps in this case refers to the time when either object changes direction in their movement.
My question now is, given the x,y,z position and velocity of both S and T at every discrete step, how am I able to predict the time of detection (i.e. intersection) between the Frustum of S and point T, if any? My code is currently only able to detect if a point is within the Frustum or not. But this is only useful if I am doing continuous time simulation. I am not sure as to how I should compute the intersection between a ray and the 6 planes that make up the Frustum while considering both the velocities of S and T. Some articles online mention that for dynamic object intersections, the general principle is to consider only one object to be moving before solving the equations for times t1 and t2 (i.e. relative entry and exit times). However, that doesn't seem to be working for me.
Please advise. Thanks!