Dynamic simulation of tennis stroke