# Add some randomness to the velocity when a ball bounces using UProjectiile Movement Component

**URL:** <https://forums.unrealengine.com/t/add-some-randomness-to-the-velocity-when-a-ball-bounces-using-uprojectiile-movement-component/488226>\
**Category:** World Creation\
**Tags:** projectile-movement, bounce, unreal-engine, question\
**Created:** [August 31, 2021, 7:37am UTC](https://forums.unrealengine.com/t/add-some-randomness-to-the-velocity-when-a-ball-bounces-using-uprojectiile-movement-component/488226 "2021-08-31T07:37:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [August 31, 2021, 7:37am UTC](https://forums.unrealengine.com/t/add-some-randomness-to-the-velocity-when-a-ball-bounces-using-uprojectiile-movement-component/488226/1 "2021-08-31T07:37:26Z")

</div>

I’m developing a clone of Arkanoid and I’m using **UProjectile Movement Component** to move the ball.

When the ball hit something it always bounces to the same direction. I’ve been checking `UProjectileMovementComponent::ComputeBounceResult` code to see if I can add some randomness to the velocity returned by the method, but I don’t think so.

For example, if the ball moves with (0, +y, +z), it will bounce to (0, +y, -z). I want to add some randomness to the z value. Something like (0, +y, -0.8z).

Is there is anything I can use it?

Maybe, I can use the method `UProjectileMovementComponent::AddForce`.
