# I have a problem with a direction change

**URL:** <https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158>\
**Category:** Community & Industry Discussion\
**Tags:** direction, overlap-actors, unreal-engine, impulse, question\
**Created:** [April 19, 2021, 12:15pm UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158 "2021-04-19T12:15:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![loller97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@loller97](https://forums.unrealengine.com/u/loller97)\
**Post date:** [April 19, 2021, 12:15pm UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158/1 "2021-04-19T12:15:01Z")

</div>

I’m trying to create a blliard similar game for mobile

the view:

 ![336367-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/9/089452a0fb22d2b7d9b475f255fe8d41ec7e601d.png)

So I created a cylinder actor with an overlap event that set the collision of the actors that touch it to false for 0,5sec and this works properly, but now I have to make the balls fall into the hole, so I did a new impulse (like the one I use to move the white ball) after a sleep but it seems to only push the ball up (or down inverting the vectors) on the y axes  
level blueprint:

 ![336368-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/4/0c4a5aa5e24957956380b00eebf9226647f4b747.png)

ball blueprint:

 ![336369-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/f/d3f20138bd7309e1ca2c4a845184e682155d197a.png)

the make2dvector was a try but didn’t change anything

just another little questions:  
there is a way to make the physics balls to not turn after a bounce? (sometimes the bounce make it not to go linear)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 19, 2021, 1:35pm UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158/2 "2021-04-19T13:35:31Z")

</div>

You’re making it very hard for yourself. If you make the balls physics assets, everything will happen automatically, ball bouncing, falling in pockets etc.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 19, 2021, 2:04pm UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158/3 "2021-04-19T14:04:17Z")

</div>

And top it up with a physical material for even more control.

---

<div class="post-metadata">

**Author:** ![loller97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@loller97](https://forums.unrealengine.com/u/loller97)\
**Post date:** [April 19, 2021, 3:22pm UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158/4 "2021-04-19T15:22:44Z")

</div>

I want raondom hole spawning in the future so there is no actually real holes, i need to simulate the fall with the event

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 19, 2021, 4:28pm UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158/5 "2021-04-19T16:28:25Z")

</div>

Then you could just turn off the collision on the ball, and it would fall because of physics.

---

<div class="post-metadata">

**Author:** ![loller97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@loller97](https://forums.unrealengine.com/u/loller97)\
**Post date:** [April 19, 2021, 4:45pm UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158/6 "2021-04-19T16:45:40Z")

</div>

yes, if you read I did exactly this but that’s not the problem, I also need to push the ball inside the hole with the correct direction and power to not make it penetrate the green mesh

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 19, 2021, 6:10pm UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158/7 "2021-04-19T18:10:21Z")

</div>

Ok, how about the cylinder actually taking control?

It already changes the collision on the ball. Could it also pull the ball in using a timeline?

---

<div class="post-metadata">

**Author:** ![loller97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@loller97](https://forums.unrealengine.com/u/loller97)\
**Post date:** [April 21, 2021, 10:08am UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-a-direction-change/482158/8 "2021-04-21T10:08:10Z")

</div>

I found out by myself that the location of the ball actors wasn’t updating so after a little search I understood the problem: the mesh wasn’t the root and fixed it all worked well.  
I’m still searching a way to improve the bounce of the physics balls (to make it perfectly linear)
