My first 3way with my ex and his best friend [f/m/m] girls perspective

There was a huge music festival 8 hours away from my hometown. My guy friend Cody, and his friend  (my sort of aqaintence) Robby decided we wanted to take a spontaneous trip.
I say Robby is an aqaintence because he is Cody’s friend, Cody and I dated for quite a while, but we grew apart and were okay with being friends. Also, we occasionally hooked up. Cody and Robby are best friends and I’ve heard many stories about Robby, Robby and I never talked before this trip, but when I met him he was awesome, like another Cody pretty much.
So, I drove to Cody’s house 8am then we picked up Robby. We shook hands and said hello, now when I first saw Robby I thought “wow he is really attractive.” But I knew I couldn’t go there since he was Cody’s best friend and I had to obey guy code.
After a couple of hours we decided to stop for some food. We stopped in this little town at a cafe. We sat at a table and the waiter took our order, Cody had to use the restroom so it was just Robby and I. This was the first time we were alone and it was extremely awkward.  But we had small chat and found out we had some common interests. We even started to flirt a little, but when Cody came back I remembered “no, bad, off limits.”