Normal Animation to Stationary Animation


I downloaded an FBX file and animation in it is moving in Some directions, how I can convert it to a stationary animation so I can move the model with code?