Change the function that calculates the velocity of polygonShape.