set velocity by position