I am trying to achieve the effect of after the player running, it will sliding and cannot be controlled until decelerate to stop.
I somehow did it by setting these when the charstate is deceleration:
KickStarter.player.charState = CharState.Decelerate;
GetComponent<Player> ().motionControl = MotionControl.JustTurning;
But it seems the deceleration rate is unstable. I suspect the player deceleration duration and trigger time is not controlled well. Is that during motionControl = MotionControl.JustTurning, the player deceleration effect won't kick into effect?
Comments