Keep both sweeps and try only moving by 1 and -1 in either X or Y Delta, not both. It solved the sliding problem for me, seemingly.
Iâve been battling with this problem myself and just wanted to add that it is insane that this issue hasnât been addressed by Epic yet. I mean, the bread and butter of this engine is ThirdPerson games
This is a very good solution to my problem. Is there any update to this method? Or is this the best solution so far. Thank you for your answer. I have benefited a lot
I solved the problem you are having. I know this thread is old, but maybe someone finds this by googling.
Instead of moving in X and Y in a single MoveUpdatedComponent node, I separated the X and Y movements into separate pairs of nodes. This stopped the drifting effect you are having.
I saw a solution similar to this threadâs solution in a gamedev.tv course âUnreal Engine 5 C++ Developerâ, and I modified it to this. I hope this helps .
Do any of you know how to solve an issue with crouching associated with this smooth push method? In my case, my characterâs collision shape (capsule) remains crouched while being pushed.
It should be working for your character, crouched or otherwise.
Had a similar issue in a 2.5D game and although this solution feels just wrong, it worked perfectly.
Yeah I donât know why that works, but just glad it does for this situation.
This solution worked for me in a first person game. I was wondering if anyone could explain this a bit more? Iâm just confused why we had to separate it instead of using a single MoveUpdatedComponent Node? Thanks
Edit: While this solution works, i have read several times it wastes resources putting this code in Tick, because it will run this code to sweep, even when player doesnât touch anything. Anyone got a workout to use it elsewhere than tick? ty
I still donât ultimately understand why this works. But again, it seems to be the shape of the capsule component as the ultimate cause for this. I bet if the capsule was a cube this would not happen. If the polling rate is an issue for you with Event Tick, you could try a Set Timer set to loop and slower numbers like .25 - .50. and see what effects that has.