def create_transition(self, action_data):
     action = Transition()
     action.direction = action_data.direction
     action.last_action = self.get_action(
         action_data.direction, 
         action_data.last_action_state,
         action_data.last_action_animation_name
     )
     action.next_action = self.get_action(
         action_data.direction, 
         action_data.next_action_state,
         action_data.next_action_animation_name
     )
     
     self.set_animation_from_frame_point_positions(
         action,
         action_data.first_frame_point_positions,
         animation.get_frame_point_positions(
             action.next_action.right_animation,
             action.next_action.right_animation.frames[0]
         ),
         TRANSITION_ACCELERATION
     )
     
     return action