# How to continue projectile's movement after hitting a surface

**URL:** <https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399>\
**Category:** Blueprint\
**Tags:** projectile-movement, unreal-engine, Blueprint, question\
**Created:** [February 9, 2015, 5:40am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399 "2015-02-09T05:40:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![FiftyStars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FiftyStars](https://forums.unrealengine.com/u/FiftyStars)\
**Post date:** [February 9, 2015, 5:40am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/1 "2015-02-09T05:40:16Z")

</div>

Hi. My projectile must continue its movement after hit event at some conditions. How to relaunch it if it has stopped?

---

<div class="post-metadata">

**Author:** ![Duncan\_Dam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Duncan\_Dam](https://forums.unrealengine.com/u/Duncan_Dam)\
**Post date:** [February 9, 2015, 6:03am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/2 "2015-02-09T06:03:10Z")

</div>

you want thing like ricochet ? if you use movement component for your projectile, it have value for you if you want bullet bounce.

---

<div class="post-metadata">

**Author:** ![FiftyStars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FiftyStars](https://forums.unrealengine.com/u/FiftyStars)\
**Post date:** [February 9, 2015, 6:06am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/3 "2015-02-09T06:06:52Z")

</div>

Yes you are right. I know about bounce params, but in my case bullet should bounce at some angles and pierce the object at other angles

---

<div class="post-metadata">

**Author:** ![Duncan\_Dam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Duncan\_Dam](https://forums.unrealengine.com/u/Duncan_Dam)\
**Post date:** [February 9, 2015, 6:19am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/4 "2015-02-09T06:19:36Z")

</div>

ok, then when hit you need calculate the next velocity of your bullet then just AddImpulse with true for velocity change.

---

<div class="post-metadata">

**Author:** ![FiftyStars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FiftyStars](https://forums.unrealengine.com/u/FiftyStars)\
**Post date:** [February 9, 2015, 5:11pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/5 "2015-02-09T17:11:04Z")

</div>

Not working. Projectile stops anyway

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [February 9, 2015, 7:04pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/6 "2015-02-09T19:04:52Z")

</div>

Hi FiftyStars,

Here is a tutorial on how to create a ricocheting line trace. Even if it can’t be adapted to your projectile, it may give you some ideas.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![FiftyStars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FiftyStars](https://forums.unrealengine.com/u/FiftyStars)\
**Post date:** [February 9, 2015, 7:19pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/7 "2015-02-09T19:19:23Z")

</div>

Hi, i know how to calculate trajectory. I dont understand how to re launch projectile after it was stopped by the wall

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_957a4452](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_957a4452](https://forums.unrealengine.com/u/anonymous_user_957a4452)\
**Post date:** [February 13, 2015, 3:22pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/8 "2015-02-13T15:22:40Z")

</div>

Hi,

ProjectileMovementComponent has category Projectile Bounces. You should check property ‘ShouldBounce’ to continue projectile moving. In addition, you can use Bounciness parameter to control bounce direction or you can use Event Hit to update projectile moving direction. If ShouldBounce is unchecked after first hit, projectile simulation will stop.

Hope it helps!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_66a0fcb6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_66a0fcb6](https://forums.unrealengine.com/u/anonymous_user_66a0fcb6)\
**Post date:** [February 20, 2015, 1:58am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/9 "2015-02-20T01:58:20Z")

</div>

Hey, I’m trying to do something similar to you and I have to ways so far but none of them are perfect.

The first one requires physics so you need to enable them on your collision component (check Simulate Physics). This allows you to add impulses and force to your object. The problem is that your object will spin around so if you use get control rotation and get forward vector it might not have the results you want. I still don’t know how to fix that so if anybody has an idea I’ll be really interested in hearing it.

The second solution I tried didn’t involve physics. I guess that you have a Projectile Movement component in your projectile. Just get that and call set velocity. As for the value, just get the Control Rotation → Get Forward Vector and multiply that by some float value and then plug it into set velocity.

---

<div class="post-metadata">

**Author:** ![FiftyStars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FiftyStars](https://forums.unrealengine.com/u/FiftyStars)\
**Post date:** [February 20, 2015, 7:01am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/10 "2015-02-20T07:01:58Z")

</div>

Hi. I’ve “solved” my problem by creating projectile without projectile movement component. Implementing movement is easy. Bouncing - a bit harder but still real. The best thing is that i can manually start/stop its movement.

---

<div class="post-metadata">

**Author:** ![Osok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Osok](https://forums.unrealengine.com/u/Osok)\
**Post date:** [December 2, 2015, 12:12pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/11 "2015-12-02T12:12:42Z")

</div>

Could you elaborate a bit on how you did this? Thank you.

---

<div class="post-metadata">

**Author:** ![FiftyStars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FiftyStars](https://forums.unrealengine.com/u/FiftyStars)\
**Post date:** [December 2, 2015, 12:19pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/12 "2015-12-02T12:19:23Z")

</div>

I dont know how “good” it was, but i have just created my own projectile system. A bit of gravity, a bit of bouncing, a bit of acceleration/deceleration and some other things to make it similar to projectile movement component with a bit different behaviour

---

<div class="post-metadata">

**Author:** ![Osok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Osok](https://forums.unrealengine.com/u/Osok)\
**Post date:** [December 2, 2015, 12:36pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/13 "2015-12-02T12:36:31Z")

</div>

I appreciate the answer, but I am wondering if you can expand exactly on how you came up with this solution. Im guessing each frame you add an impulse in the forward vector? How did you implement the bouncing and gravity? Thank you in advance

---

<div class="post-metadata">

**Author:** ![FiftyStars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FiftyStars](https://forums.unrealengine.com/u/FiftyStars)\
**Post date:** [December 2, 2015, 9:15pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/14 "2015-12-02T21:15:24Z")

</div>

Yes, it is attached to tick event.  
Its just physics. Its hard for me to answer to you, because english is not my native =D This is simple physics + geometry

---

<div class="post-metadata">

**Author:** ![SaperPL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaperPL](https://forums.unrealengine.com/u/SaperPL)\
**Post date:** [April 21, 2016, 9:13am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/15 "2016-04-21T09:13:24Z")

</div>

I’ve found a solution to do this in blueprints only.

1. Make actor with ProjectileMovementComponent AS VARIABLE

2. Add ProjectileMovementComponent in construction script

3. Detect hit you want to ignore - set ignores for components of both actors

4. Destroy ProjectileMovementComponent and add a new one like this:

 ![87781-projectilereset.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/4/a343cc00906eb7c889645f629b22659ee0ed3cb5.png)

Note that ProjectileMovementComponent should have autoactivate set true for this to work smoothly

---

<div class="post-metadata">

**Author:** ![SVR33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svr33/32/906589_2.png) [@SVR33](https://forums.unrealengine.com/u/SVR33)\
**Post date:** [April 25, 2016, 3:11am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/16 "2016-04-25T03:11:25Z")

</div>

This is exactly what I was looking for. Thanks.

---

<div class="post-metadata">

**Author:** ![SaperPL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaperPL](https://forums.unrealengine.com/u/SaperPL)\
**Post date:** [April 25, 2016, 6:10am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/17 "2016-04-25T06:10:42Z")

</div>

Theres another option to do this if you don’t want to destroy the component, but its a bit of a hack. In cpp code i found that on hit projectile component has active component variable cleared. You can reinitialize this with setactivecomponent blueprint block. After this you only need to set the velocity to make it fly.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_210522a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_210522a1](https://forums.unrealengine.com/u/anonymous_user_210522a1)\
**Post date:** [April 25, 2016, 8:09am UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/18 "2016-04-25T08:09:57Z")

</div>

Hello,

I have done this myself, it is quite complicated to make it very good, I followed a tuturial from a youtuber called MipGames, and i think that tutarial is almost perfect. Link down bellow.

Part 1: [Unreal Engine Tutorial - Bullet Physics / Projectile Physics and Penetration Part 1/5 - YouTube](https://www.youtube.com/watch?v=jNVEimfgvm4)  
Part 2: [Unreal Engine Tutorial - Bullet Physics / Projectile Physics and Penetration Part 2/5 - YouTube](https://www.youtube.com/watch?v=rtj3k1ymiAU)  
Part 3: [Unreal Engine Tutorial - Bullet Physics/Projectile Physics and Penetration Part 3/5 - YouTube](https://www.youtube.com/watch?v=iEVtC2xPrr0)  
Part 4: [Unreal Engine Tutorial - Projectile Physics part 4/5 - YouTube](https://www.youtube.com/watch?v=woQQGFWQiPY)  
Part 5: [Unreal Engine Tutorial - Projectile Physics part 5/5 - YouTube](https://www.youtube.com/watch?v=3f06RbwHU1s)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5bf0957e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5bf0957e](https://forums.unrealengine.com/u/anonymous_user_5bf0957e)\
**Post date:** [May 4, 2017, 1:18pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/19 "2017-05-04T13:18:51Z")

</div>

Digging through the code, I found the following function:

```
void UProjectileMovementComponent::StopSimulating(const FHitResult& HitResult)
{
	SetUpdatedComponent(NULL);
	Velocity = FVector::ZeroVector;
	OnProjectileStop.Broadcast(HitResult);
}

```

So all you have to do to restart a ProjectileMovementComponent should be to **reset the UpdatedComponent and Velocity**. It’s probably a good idea to call Activate on the ProjectileMovementComponent as well to make sure the ProjectileMovementComponent’s Tick is still enabled.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8435d506](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8435d506](https://forums.unrealengine.com/u/anonymous_user_8435d506)\
**Post date:** [May 9, 2017, 7:31pm UTC](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399/20 "2017-05-09T19:31:16Z")

</div>

In case anyone needs different approach, the way our team did was to make a projectile overlap an obstacle. If it’s supposed to bounce, change normalized vector of the projectile when OnBeginOverlap fires. If it’s supposed to penetrate, just let it go. If it’s supposed to be blocked, use Stop Movement Immediately.

[Next page](https://forums.unrealengine.com/t/how-to-continue-projectiles-movement-after-hitting-a-surface/306399.md?page=2)
