Flying object penetrates the target and then go back to target

I want to make a bullet that flys to target,when hit,the bullet doesn’t stop but keep going for a distance and then turns direction and fly back to target,and again penetrates target,etc.
Kind of like Yando’s arrow from the movie “ Guardians of the Galaxy”.
I didn’t figure out how to begin.
Feel free to give any suggestions,outline ideas,of corse blueprint is the best.
many thanks !

Hi Baobao,

I’d begin with learning how to use line-traces. It will help you start working with locations and vectors. (directions)

There’s also a ‘projectile movement component’ that would be worth trying out.

Hope that helps you get started!

1 Like

Thanks a lot for responding.I know these two ,projectile movement and traces.and I m planning to use projectile movement.but the line trace might not work.because the bullet ,once got fired it automatically finds the target and fly to it.
And I now know how to let bullet finding enemy and fly to it ,but not much the rest,because it will stop when reaches the target. I want it to penetrates for a distance.
Any more hints would be appreciated.

I was imagining something like when the projectile hits, it spawns a new projectile. (Taking in the vector it hit from, and figuring out the vector needed to keep going in a straight line) That new projectile would know how far it’s going to go before turning around and coming back. (I wonder what would happen if you changed velocity on a moving projectile, would a negative velocity make it change direction?)

For a more “curvy” projectiles, I’d try to learn how ‘homing’ systems could be implemented.

1 Like

This looks make sense.I’ll try it .and coming back I think I could do.but in a straight movement,which is not good…

I do wan it to turn direction in a curve style.the “homing”is a new word to me…I usually add a curve on a auto-projectile through adding some value on the target location and then lerp back to the original target location so that the projectile fly in a curve.

And this only works on projectile that starts from 0 velocity.I don’t know how to do it on flying projectile .

I wanted to choose your answer but for some reason I clicked the wrong post…how would I cancel that?

edit: I can choose twice…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.