0
\$\begingroup\$

I have a project where I can shoot (with a simple projectile).

Character Blueprint (generate projectile):

enter image description here

However I would like to be able to make the projectile go towards a specific target.

Projectile Blueprint (target definition):

enter image description here

And I think that with the code below I would achieve the expected effect.

Projectile Blueprint (change projectile rotation):

enter image description here

Some links that helped me get here (I may have let something pass):

https://www.youtube.com/watch?v=oyNzsbTpGqg

https://forums.unrealengine.com/community/community-content-tools-and-tutorials/48896-homing-missile?77586-Homing-missile=

https://answers.unrealengine.com/questions/239188/rinterp-to-doesnt-slowly-change-character-rotation.html

I do not know what I'm doing wrong (based on the links above).

The projectile walks straight and visibly I see no change in its trajectory.

\$\endgroup\$
  • \$\begingroup\$ Are you sure it isn't just very small, since you set it to rotate in 20 seconds? \$\endgroup\$ – Bálint Jul 21 at 10:30
  • \$\begingroup\$ @Bálint I chose this value (20), based on the response of that link: answers.unrealengine.com/questions/239188/… \$\endgroup\$ – Boneco Sinforoso Jul 21 at 17:14
  • \$\begingroup\$ @Bálint I changed the value from 20 to 1, and nothing has changed. \$\endgroup\$ – Boneco Sinforoso Jul 21 at 17:14
  • \$\begingroup\$ @Bálint I changed the format of the projectile, and now I realize the change of its rotation. It seems that the higher the value, the faster the rotation changes. \$\endgroup\$ – Boneco Sinforoso Jul 21 at 17:23
  • \$\begingroup\$ But the projectile still does not go towards the target, it just points (it is facing). \$\endgroup\$ – Boneco Sinforoso Jul 21 at 17:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.