Simulated input direction

So I have an AI script I’m using for my game. AI basically sits on top of a character and manipulates the characters controls. Right now I’m struggling with something that I feel is simple but I am unsure how to accomplish it.

Basically I want to have the AI move towards something by pointing its simulated analog stick towards it. To clarify, I already know how to calculate the direction it should be traveling by comparing the transforms of the two objects, but I am not sure how to translate that vector into one that would be similar to a vector generated by moving an analog stick.

have a look at this, the part about the values…


now for fake input you could calc your x,y cordinates by circle equation

https://social.msdn.microsoft.com/Forums/en-US/ddbcfc2a-f4cc-4bbf-84a3-d4d36294baaa/equation-code-of-the-plane-circle-curve-in-c?forum=csharpgeneral