Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Projectile spawned changes direction based on the Third Person Character Controller movement

By pressing a button, my character spawns a simple projectile (a different blueprint with attached a ProjectileMovement component). I haven't modified anything in the projectile component aside from the Initial Speed and set to 0 the Projectile Gravity Scale. In the character blueprint I simply spawn the projectile whenever I press the input button. The projectile spawns correctly but the problem can be noticed when, after shooting the projectile, I move my character. The projectile can be seen slightly changing its direction as if dependant on my character. It can be seen more evidently when the character dashes to the left or right, because the projectile moves faster accordingly to my character. To be clear, it moves unexpectedly well after I move the character that spawns it, not if I move the character in the exact moment that I spawn the projectile. Is this a normal behavior of a projectile in UE? What can I do to avoid it? I hope my problem is clear, thank you.

Product Version: UE 4.19
more ▼

asked Jul 13 '18 at 04:51 PM in Blueprint Scripting

avatar image

13 1 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first

There is a checkbox in projectilemovement conponent which tells it whether to add the spawner's speed to the projectile's speed, If I remember correctly.

Also I think your projectile is colliding with and getting pushed by your character. Make sure its collision type and channels are nt going to result in Blocking on both the projectile and the character pawn. If only one is blocking when they meet then it will resolve to Overlap and not push the projectile.

more ▼

answered Jul 13 '18 at 08:13 PM

avatar image

3.8k 18 23 20

avatar image yrevsuh Jul 14 '18 at 07:29 AM

Yes, there was a checkbox in the movement component of the projectile that I thought I tried to uncheck but apparently I forgot to actually try. It solved the problem. Thank you for your answer.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question