update pos and rot only once per second