So pretty much I can help with any kind of movemevent including kinematics and physics movement.
However would like to understand your question first, so have to ask some questions first about it.
-
- Do you want counter strafing A and D at any time and movement status? Ex: You want it only on ground ? or Ground Air Swim etc.
- What type of cancel out you want? If A and D pressed together there is no movement? Lets say you are going right with D and you press A it stops.. if you stop pressing D it starts going left?
- What kind of cancelling you want? is it instant or you want easing stop? slowly stop? It really depends the game feel, older games use hard stops especially platform genre, newer games dont, competetive FPS differ in this cause it effects a lot of things that is not subject here.
Just to be helpfull if you don’t want something too specific and custom and you want just cancelling on movement vector
you can access input move and change accumulation method to cumulative which will naturally cancel out movement in Keyboard cases.