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 speed increase problems

So here is my problem... i want to make my projectile speed increase the faster my character is moving, But while my character isn't moving the projectile shoots at a speed of 200 witch is what i want... but when i start moving the velocity overrides my projectile start speed and from their on out my projectile speed is 0 unless my character is moving... I want my projectile speed to always be 200 and increase as my character gets moving faster..please help!!

alt text

Product Version: Not Selected
bp.png (180.0 kB)
more ▼

asked Mar 15 '15 at 11:35 PM in Blueprint Scripting

avatar image

6 1 2 2

avatar image nu7 Mar 17 '15 at 02:43 AM


avatar image nu7 Mar 18 '15 at 02:01 PM


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

1 answer: sort voted first

Hi nu7

I was working on projectile inheritance last night and figured it out, hope this can help you. Everything was done in the FP_blueprint, not the projectile blueprint but the math is the same either way

The problem has to do with World Velocity and Local Velocity. With local velocity(Projectiles), X is always the direction you are facing/firing. So to add your character velocity(world velocity) to a projectile, you need to change it from World to Local by using Unrotate Vector.

Character Movement -> Velocity and Get Actor Rotation into Unrotate vector. Unrotate vector localized my velocity so that X/-X was Forward/Backwards and Y/-Y was Left/Right, I set this new vector up as a variable called Inheritance. Then it was simply Inheritance + 4000 on X Vector which I sent to Velocity in Local Space. 4000 represents muzzle velocity on X you want for the projectile. alt text


more ▼

answered Apr 14 '15 at 05:43 PM

avatar image

21 1 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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