It is now believed dinosaurs were at least semi warmblooded with fuzzy insulation that was a precursor to feathers. Based on some evidence in rare fossilized soft tissues. They are more related to modern birds than reptiles based on molecular and structural analysis.
The chicken is ironically considered the closest living relative to the T Rex
Think Emu