Thank you, so much.
Its actually quite easy. I have state machine which response to player movement, ans everyframe i save the position and velocity. Applying them again results to this.