question: public void paintComponent ( Graphics g ) { g . drawImage ( track , 0 , 0 , null ) ; Graphics2D g2d = ( Graphics2D ) g . create ( ) ; g2d . translate ( carPosition . x , carPosition . y ) ; g2d . rotate ( Math . toRadians ( carRotation ) ) ; g2d . translate ( - ( carPosition . x ) , - ( carPosition . y ) ) ; g2d . drawImage ( car , carPosition . x - carWHalf , carPosition . y - carHHalf , null ) ; }
target:  Render the track and car