set and get velocity of static objects by using appropriate api in each case