I am trying to create an animation showing a collision avoidance system. To do it, I need to find and display the evasion courses at every point in the animation. For that reason, I would like to have, if possible, the logic encapsulated in a single C# component.
The procedure is straightforward geometrically. It is shown in the following diagram:
In essence, you need to find the two tangents from the target to a circle that represents the minimum desired distance centered on our ship. Then determine the intersection of these tangent lines with a circle that has as a radius our ship’s speed and is placed at the end point of the target ship velocity vector.
I have not been able to find suitable RhinoCommon functions, and my analytic geometry skills are not what they used to be.
Any tips will be most welcomed.