In my current little project, I created a rocket (with the bullet behaviour) and a moving target.
The rocket (obviously) has a specific, constant speed and the target is moving horizontally by using the 'Sine' behaviour.
I now want to implement an option to make the rocket act as if it was a homing missile.
This means that I want the rocket to head towards the targets direction, considering the own speed and angle and the targets movement direction and speed (though it isn't constant).
I don't want a ridiculously long function, but it should not just be
Set Self.Angle towards position Target.X, Target.Y[/code:1qslgdh9]
Initially, I used exactly that action which (of course) didn't have a high success rate, since the target is moving.
So I considered giving the rocket the 'Turret' behaviour, setting it to 'Predicted aim' and control the angle by that.
That worked quite well.
I can even control the rockets accuracy with the turret's turning speed and the range.
My question is now whether there is any way to control the rocket which works even better than that?
I just started using C2 (two weeks ago) and I know that this is quite ambitious, but I wanna see where I can get and I know that this awesome community is always up for a challenge. ;)
Here is an image of my current function:
i.imgur.com/gHmy7Gd.png (sorry can't make it clickable yet)[/p]
Have a nice day, thanks for any reply! :)