# How to make a projectile bounce

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719>\
**Category:** World Creation\
**Tags:** bounce, unreal-engine, Physics, projectile, question\
**Created:** [November 8, 2016, 2:32am UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719 "2016-11-08T02:32:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![veccher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veccher](https://forums.unrealengine.com/u/veccher)\
**Post date:** [November 8, 2016, 2:32am UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/1 "2016-11-08T02:32:54Z")

</div>

i want to make a projectile bounce, so i’ve seen other similar questions in answerhub, i’ve also tried to replicate the settings from the projectile in the first person template take a look:

Made a minor change here: overlap pawns instead of ignore

 ![114176-colision+presets.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/3/173ed6f46c0e92c5635ee13fb5ffe1d6e7317e01.png)

just 1 thing i couldn’t replicate: in variable-\>category i couldn’t find the “projectile” category, also i couldn’t create one, i don’t know exactly what it would affect in physics,

 ![114177-projectile+presets.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/2/fb2511ddecaf6ca4c25faac8c2cb49e850115e00.png)

 ![114178-preset.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/d/28d181ebe0307ba1f3da7bf74f28b5118d019000.png)

i’ve tried shooting at a static mesh (set to block all) and a “physics blocking volume”, in both cases the projectile was ignored, i think it was ignored and not overlaped because the “on begin overlap” event was not fired.  
so… what am i doing wrong?

---

<div class="post-metadata">

**Author:** ![veccher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veccher](https://forums.unrealengine.com/u/veccher)\
**Post date:** [November 9, 2016, 8:39pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/2 "2016-11-09T20:39:28Z")

</div>

up

/_trying to up the post because only had 3 views, and probably 2 were mine_/

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f80788d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f80788d5](https://forums.unrealengine.com/u/anonymous_user_f80788d5)\
**Post date:** [November 9, 2016, 8:58pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/3 "2016-11-09T20:58:51Z")

</div>

Try setting the collision of the projectile under “Collision Enabled” to query AND physics. At the moment, all it is doing is generating overlap events when it collides.

---

<div class="post-metadata">

**Author:** ![veccher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veccher](https://forums.unrealengine.com/u/veccher)\
**Post date:** [November 9, 2016, 9:26pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/4 "2016-11-09T21:26:05Z")

</div>

good point, but it still ignores the blocking volumes, actually it pushes meshs with “simulate physics” but doesn’t bounce, even when i set the mass to an giant number, it just pushes the mesh and the projectile velocity and direction aren’t changed at all, and if i try to shot things with physics off and collision presets:“block all” it just ignores the mesh.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f80788d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f80788d5](https://forums.unrealengine.com/u/anonymous_user_f80788d5)\
**Post date:** [November 9, 2016, 10:52pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/5 "2016-11-09T22:52:12Z")

</div>

I’ve just taken a look at the code for the projectile. It looks like this:

All you need to do to make it bounce is stop it from destroying the projectile when it successfully hits by removing the end node. Or using a “delay” node before deleting it.

You’re using a child class of the parent projectile, which isn’t giving you the functionality you want to begin with. You’re probably better off starting again and creating your own. All it needs to have is an event hit.

To adjust the force applied by the projectile when it hits you can change the impulse multiplier. Either by setting it literally or creating a variable then plugging that into it.

The adjusted code looks something like this:

A video of the bounce effect with impulse multiplier set to 5 instead of hard coded to 100.

  
Good luck!

P.S. The collision sphere of the projectile hasn’t been touched. It’s still set to it’s defaults, query only:

---

<div class="post-metadata">

**Author:** ![veccher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veccher](https://forums.unrealengine.com/u/veccher)\
**Post date:** [November 10, 2016, 12:27am UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/6 "2016-11-10T00:27:22Z")

</div>

ty for trying to solve my problem, looks like you’ve put some time into it, but unfortunatelly i don’t think this will solve my problem, the “projectile” class parenting my “LaserProjectile” isn’t the one in the picture, my “projectile” class is pretty different from this one, and it’s parenting a lot of different projectiles in my project, removing the parent class and remaking the class would make a mess in my code, so i won’t take this as an option, i don’t have a problem with the projectile being destroyed after a collision, also this code in the projectile doesn’t seem like it helps making it bounce at all, it just add some impulse to push the object it hits.

my problem still is: if it hits something with “simulate physics” on it will push it and then keep moving, without any change to it’s speed or direction, else if it’s a pawn it’s destroyed -and apply some damage to the pawn-, else it just ignore the mesh, even if the mesh is set to block all.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f80788d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f80788d5](https://forums.unrealengine.com/u/anonymous_user_f80788d5)\
**Post date:** [November 10, 2016, 12:48am UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/7 "2016-11-10T00:48:45Z")

</div>

“if it hits something with “simulate physics” on it will push it and then keep moving”

Simulation on, on the mesh or projectile?  
What will keep moving your mesh or the projectile?

You’d have to post some screens of your blueprint’s code to troubleshoot further.

---

<div class="post-metadata">

**Author:** ![veccher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veccher](https://forums.unrealengine.com/u/veccher)\
**Post date:** [November 10, 2016, 1:54pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/8 "2016-11-10T13:54:05Z")

</div>

“simulate physics” on in the mesh (and off in the projectile): the mesh acts like it was hit by a truck and gets hardly pushed away, the projectile acts like nothing happened and keep moving forward

“simulate physics” off in the mesh (and off in the projectile): projectile and mesh ignore each other

“simulate physics” on in the projectile: a lot of weird stuff happens, i can’t even describe

about the code: there’s no code at all in this “LaserProjectile”, and in it’s parent (Projectile) there’s just a big “Event ActorBeginOverlap”, but it’s set to overlap only pawns, so there’s no code being called.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f80788d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f80788d5](https://forums.unrealengine.com/u/anonymous_user_f80788d5)\
**Post date:** [November 10, 2016, 5:38pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/9 "2016-11-10T17:38:51Z")

</div>

Without anything hooked up in the parent class it should behave like a standard projectile component right? Like the standard one I can test with? Sounds like the mass of your projectile and its velocity is way too high. It should still bounce off static meshes that aren’t simulating physics though.

---

<div class="post-metadata">

**Author:** ![veccher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veccher](https://forums.unrealengine.com/u/veccher)\
**Post date:** [November 10, 2016, 9:25pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/10 "2016-11-10T21:25:42Z")

</div>

exactly, it should act like an standard actor with a colision, static mesh and projectile component, the mass is ~~100, the velocity is 1200, but i’ve tried slowing the projectile to 100 and it still didn’t bounce, i’m not sure if the mass of the mesh is affecting something with simulate physics off.

i’ve also tried to create a new blueprint with just the components to reproduce. and same thing happened

---

<div class="post-metadata">

**Author:** ![veccher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veccher](https://forums.unrealengine.com/u/veccher)\
**Post date:** [November 16, 2016, 7:58pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/11 "2016-11-16T19:58:25Z")

</div>

updating: i’ve just solved the problem, apparently for some reason bounce only works when the collision component is the root component, simple setting the collision as the root component solves the problem, still it’s weird i can’t understand why it don’t works without it being root component, but ok.

---

<div class="post-metadata">

**Author:** ![Nobodikilla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nobodikilla](https://forums.unrealengine.com/u/Nobodikilla)\
**Post date:** [January 25, 2019, 3:56pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/12 "2019-01-25T15:56:15Z")

</div>

Thanks for that. Saved me some time!

---

<div class="post-metadata">

**Author:** ![Sarc4stico](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sarc4stico](https://forums.unrealengine.com/u/Sarc4stico)\
**Post date:** [September 13, 2022, 7:43pm UTC](https://forums.unrealengine.com/t/how-to-make-a-projectile-bounce/375719/13 "2022-09-13T19:43:28Z")

</div>

I just had this same problem. I would have never guess i had to put the static mesh the projectile component is attached on as root.  
Thanks.
