x

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"

Projectiles Losing Velocity

Hi all!

So I have some objects spawning a BP which has a static mesh and a projectile component;when it has spawned the projectile, it adds an impulse to get it on its way and all seems good - until it comes to the bounce.

I have bounce turned on; bounciness at 1.0 with friction at 0 and BVSS at 0 also. Now, it DOES bounce... but it's losing velocity - and by the second or third bounce, it has come to an almost complete stop.

I cannot seem to find a way to successfully add impulse to self, either, so cannot seem to boost the velocity back up in this manner.

Any help available?

Thanks all!

Product Version: UE 4.13
Tags:
more ▼

asked Sep 25 '16 at 04:30 PM in Blueprint Scripting

avatar image

KageMao
6 1 3 6

avatar image LUKASZJB Nov 29 '16 at 09:13 AM

Hi,

I have same problem. You solved it? Or you used Dallin solution?

avatar image LUKASZJB Nov 29 '16 at 09:50 AM

OK.

I Found answer. I use example to explain. Let's assume that you have a ball and room. Ball should bounce from walls and never lose any velocity. You need set up ball with UProjectileMovementComponent where bShouldBounce is true, Bounciness is 1.0 and Friction is 0.0. Then you need set up walls with PhysicalMaterial where Friction is 0.0, Restituation is 1.0, Restituation Combine Mode is Max, Restituation Combine Mode is checked.

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

1 answer: sort voted first

I doubt this is the best method, but you could make a projectile speed variable as a float. you could then on each tick get the linear velocity, normalize it, then multiply it by your projectile speed variable you defined. then set this value under set linear velocity this should allow it to continue in whatever direction you specify. You may have to change go and "set tick group" to after physics or something to make sure it ticks at the right time.

I would give you fancy bp pictures, but I am not at home. Hope this helps!

more ▼

answered Sep 28 '16 at 05:43 PM

avatar image

Dallin
38 1 2 3

(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