Paper2d MultiDirection floaty movement
I'm currently attempting to make an isometric game, and I have set the movement component to flying, with no gravity. I have designed the proper air braking to give the walking effect a good feel but this works only when its uni-directional input. Once I start a multi-directional input, The movement component ignores braking and starts to "float" giving a drifting effect with the character. Going from UP + LEFT to LEFT causes the component to bank a little bit before course correcting to a full left direction. Same with any other multi-direction to uni-directional/multi-directional movement/direction. I was wondering if you had any suggestions to remove this banking effect currently happening.
These are my current movement component settings for C++. I'm trying to get rid of the floaty movement. Any help in this will be greatly appreciated.
As Written by Zak Middleton: https://forums.unrealengine.com/showthread.php?3539-Project-Paper2D/page14 (towards the bottom)
you will only want to override CalcVelocity; Friction is used for turning in CalcVelocity with this code:
There is also the fluid friction applied right after that, if bFluid is true.
In your case I would probably override CalcVelocity to set bFluid to false when flying, and use your own friction setting for turning. You could get fancier if you care to only do this when there is acceleration (so you still have fluid friction when braking/coasting to a stop). Something like this:
answered May 04 '15 at 10:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here