# Boost/add speed to an actor

**URL:** <https://forums.unrealengine.com/t/boost-add-speed-to-an-actor/1566306>\
**Category:** Programming & Scripting\
**Tags:** ball, unreal-engine, question, Blueprint\
**Created:** [December 27, 2023, 11:15pm UTC](https://forums.unrealengine.com/t/boost-add-speed-to-an-actor/1566306 "2023-12-27T23:15:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Byakuya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/byakuya/32/891707_2.png) [@Byakuya](https://forums.unrealengine.com/u/Byakuya)\
**Post date:** [December 27, 2023, 11:15pm UTC](https://forums.unrealengine.com/t/boost-add-speed-to-an-actor/1566306/1 "2023-12-27T23:15:04Z")

</div>

Hello everyone,

I’m new with Unreal and i’m working on a project in Unreal Engine 5 where I have a sphere that’s supposed to bounce and gain speed with each collision against a surface. I’ve run into an issue where despite my Blueprint being configured correctly, the ball does not increase in speed after bounces.

Here’s what I’ve set up and the steps I’ve followed:

1. I have an _ **On Component Hit** _ node connected to a series of nodes that calculate a reflection vector and apply an impulse to the sphere.
2. I’m using _ **Get Velocity** _ to capture the current velocity of the sphere, which I then feed into _ **Get Reflection Vector** _ to compute the reflection vector.
3. There’s a _ **Vector Length** _ node followed by a _ **Float + Float** _ node to increase the speed’s magnitude before multiplying it with the normalized reflection vector.
4. Finally, I apply this new speed to the sphere with _ **Add Impulse** _. The “Vel Change” checkbox is ticked, which should apply the impulse as a direct change in velocity.

Regarding collision configuration, I’ve ensured the following:

- The sphere has _ **Simulate Physics** _ enabled, and the collision preset is set to _ **BlockAllDynamic** _.
- _ **Generate Hit Events** _ is checked on the sphere’s collision component.
- The sphere has a physical material with restitution set to 1.0 and friction to 0.0.
- Collision events appear to trigger correctly, as confirmed by _ **Print String** _ nodes displaying messages upon collisions.

I’m a bit stuck and would really appreciate any help or suggestions you might have

Thank you in advance for your time and assistance.

This is my BP, my sphere confifg and material :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/f/e2fdd588b208c55b03ac73e3d486b6878ad2fb3d.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/0/760e80d5dfde147399558774d527c6ab60f470e7.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/0/6307c3004d43b7c72a1fec9c98f2034fec19f5d8.png)

(My ball bounces but doesn’t pick up speed. I’d like it to pick up speed in the direction of the bounce.)

---

<div class="post-metadata">

**Author:** ![Majj\_1089](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Majj\_1089](https://forums.unrealengine.com/u/Majj_1089)\
**Post date:** [December 28, 2023, 10:42am UTC](https://forums.unrealengine.com/t/boost-add-speed-to-an-actor/1566306/2 "2023-12-28T10:42:19Z")

</div>

Hi @Byakuya  
You can also use **Print Text** node to show Impulse’s value when collision events appear.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/1/e81e7a87487765f1a30360e01e1a72bead4ceb38.png)  
And I got this:  

  
I did the same thing with other values, and fould **Get Velocity node** returning 0,0,0. That’s why the ball didn’t pick up speed. So you should not **Get Velocity** from **Other Actor**.

Take good use of **Print Text Node** , and I find just doing like this is fine:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/c/f4c777010dd57a90d3c56fd80feb46ea22b4f59a.png)

---

<div class="post-metadata">

**Author:** ![Byakuya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/byakuya/32/891707_2.png) [@Byakuya](https://forums.unrealengine.com/u/Byakuya)\
**Post date:** [January 1, 2024, 6:02pm UTC](https://forums.unrealengine.com/t/boost-add-speed-to-an-actor/1566306/3 "2024-01-01T18:02:33Z")

</div>

Hi ! It was exactly what I was looking for, thank you very much! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 31, 2024, 6:03pm UTC](https://forums.unrealengine.com/t/boost-add-speed-to-an-actor/1566306/4 "2024-01-31T18:03:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
