rotation added and improved physics