Catalyzes the condensation of isopentenyl diphosphate (IPP) with allylic pyrophosphates generating different type of terpenoids. Binds 2 magnesium ions per subunit. Homodimer. Belongs to the UPP synthase family. Extended N-terminus.