# How do I create a projectile which bounces in XY plane only?

**URL:** <https://forums.unrealengine.com/t/how-do-i-create-a-projectile-which-bounces-in-xy-plane-only/453978>\
**Category:** World Creation\
**Tags:** projectile-movement, unreal-engine, question\
**Created:** [August 16, 2019, 7:34pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-projectile-which-bounces-in-xy-plane-only/453978 "2019-08-16T19:34:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shirouyasha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shirouyasha](https://forums.unrealengine.com/u/Shirouyasha)\
**Post date:** [August 16, 2019, 7:34pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-projectile-which-bounces-in-xy-plane-only/453978/1 "2019-08-16T19:34:03Z")

</div>

So I’ve been struggling to create a simple sphere as a projectile and make it bounce.

The problems I’ve come across are the following:

With physics YES; bounce YES , friction 0 and bounciness 1 I got two problems

1. The projectile loses speed every time it bounces off of a wall
2. The projectile starts in XY plane, yet it bounces a bit in Z too, which shouldn’t happen. (I’ve tried restricting it via the plane, the Z movement, yet it goes in a different weird plane this way)

I’ve also tried doing a trace line by channel (2 times), calculating the bounce using below:

> **[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 — ue4community.wiki! You will be able to find content from the official...

If then I try to make the projectile switch directions, when overlapping/hitting the wall, it doesn’t do that…

How could I accomplish this in blueprints? Thanks!

---

<div class="post-metadata">

**Author:** ![Shirouyasha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shirouyasha](https://forums.unrealengine.com/u/Shirouyasha)\
**Post date:** [August 17, 2019, 8:28am UTC](https://forums.unrealengine.com/t/how-do-i-create-a-projectile-which-bounces-in-xy-plane-only/453978/2 "2019-08-17T08:28:18Z")

</div>

I found the solution. Basically got to create a new physics material, apply it to the projectile and give to it Restitution 1, Override restitution combine mode to True, and finally Restituion Combine Mode set to MAX.

That solved it for me!
