Root motion compensation called from lua.