Ignore low speed deplacements

Riddick

New member
Hi,

I'm looking for a proper way to ignore low speed deplacements with UCC.
Using a pad controller, if i slightly move the left stick, my character walks very very slowly, i assume it's a normal comportement.
But i would like to ignore slow deplacements for gameplay reasons.

I found a way by increased dead zone on joystick, but this workaround has side effect...

Is there a proper way to ignore low speed deplacement ?

Stuff like this :
if(movement.x < 0.2 || movement.z < 0.2){
//dont move
}

Thanks for help !
 
As you suspected, this would be something you'd control on the input side of things. You could easily enough create your own InputBase subclass (see StandaloneInput for an example of this) to do something like the snippet you posted above.
 
Top