When my ball is moving to the sides he gets slowed ..

here is a video:
when my ball is moving to the sides he gets slowed why ?
https://youtu.be/tcRK2Pzh77A

Hey @Myst_FuyZz!

So the answer is going to lie in how you coded your movement. If you travel forward at 1m/s and left at 1 m/s, our mind assumes we have 2m/s when really we have 1 still. If you factor in acceleration (Which most templates of movement do) it seems you will slow down if you are using physics, because youâre not ALSO acceleratingâŚ I donât know itâs hard to explain. But the answer is going to lie in how youâve coded your movement regardless, so if you need more help please bring us some screenshots of that!

Hey Mind brain
actually for the movement I did not do any blueprints âŚ
i just changed the movement right here in the character movement:

and here is the ball movement code:
https://blueprintue.com/blueprint/_ykl42ck/

So what is happening is youâre splitting your movement between diagonal left and diagonal right, canceling each other out. So if you went diagonal left, thatâs 50% acceleration left, and 50% speed forward, same with right. So youâre nullifying your left acceleration with your right acceleration and vice versa when you bounce back and forth like that, causing your forward motion to be 50% speed due to the nullification of the other acceleration.

If youâd like to travel forward at the same speed even with sideways movement, you need to add forward movement input along with your left/right input! maybe multiply it by 2 while moving left/right.

1 Like

Hey mind brain thank you for ans !
I have tried to add the forward movement with the left and right input and And I didnât quite understand how to do it
can you pls help me ?
btw im new on ue âŚ

You can also change the input behavior kind of like this:
Pressed W - Normal Move Forward
Pressed A - Decrement the ball X/Y coordinate location by some amount
Below is an example but I havenât test the behavior itself so maybe needed to polish / change depends on your map itself.

Pressed D - Increment the ball X/Y coordinate location by some amount

I think if you do it that way, your ball wonât be slowed down when moving right or left since the velocity of the ball itself wonât be affected anymore.

BUT, I think this kind of algorithm will only work on a straight direction but maybe you get some insight from this I hope.

Now that Iâm looking at it againâŚ Maybe try just disconnecting the âZâ rot on your input! If itâs affecting the actor and not the meshâŚ yeah that would give you something different, and I donât want to overload you with mathematical physics! Give that a shot and get back to me and if that doesnât work weâll go the harder route!