Seeking Missile

Hey guys, I already have a script built to “spawn” a rigidbody, but now all I need is a script to attach to the rigidbody to make it a “seeking missile” that seeks anything tagged as “player”

Thanks!

Look up

GameObject.FindWithTag();

Use that in awake or start function

then use

AddComponent():

To add a lookat script, and a constant force component?

also search for “Homing” on the forum.

You will still need to cache the player as the target in the start or awake function

HTH
AC