Direction for Change Velocity help!
Hey guys, I've a moving actor(A) and I want newly spawned actors(B) to move towards A. I tried using accelerate, accelerate towards, move, move towards, interpolate....all doesn't work because I also have gravity and those don't seem to respond to gravity as actors B keeps following A around the screen and not falling back down.
The only one that works according to what I need is change velocity and unfortunately I'm no math genius but I think some trigonometry is involved in getting the direction for actor B to move towards A. If I'm not mistaken you can find the angle if there are two coordinate points with some math. I've constrained actor A's position to two new attributes by the way (A_x, A_y).
Hope this is not too complicated! Thanks a lot!
The only one that works according to what I need is change velocity and unfortunately I'm no math genius but I think some trigonometry is involved in getting the direction for actor B to move towards A. If I'm not mistaken you can find the angle if there are two coordinate points with some math. I've constrained actor A's position to two new attributes by the way (A_x, A_y).
Hope this is not too complicated! Thanks a lot!
Comments
If not, let me see if I get what you're asking. You want a spawned actor to move towards your main actor?