Hello, im having trouble finding a good homing missile script. Most tipps on the internet don't give any examples and most times i don't seem to get how to use things properly.. or whatever.
Here i found a seemly nice code:
BUT, as always something has to be brain-destructive and i have no idea what is wrong.
func _process(delta):
var target = $"../target".global_transform.origin
var target_transform = Transform().looking_at(target, Vector3(0,1,0))
global_transform = global_transform.interpolate_with(target_transform, 1 * delta)
This is copied exactly from the discussion and now to my problem, what is Transform() ?? It doesn't seem to exist?
That's where i put the code in. Because i use an arry i have to put it under "for body in Feed"
