Direct heat transfers energy through the cooking vessel. Indirect heat introduces water or steam, reducing localized hot spots. Chocolate can scorch under excessive heat, and accidental water contamination can cause it to seize. Milk and white chocolate are generally more heat-sensitive than dark chocolate. Gelatin dissolves when warmed and gels as it cools; prolonged high heat, particularly in acidic mixtures, can weaken its ability to set. Fresh pineapple contains bromelain, which can prevent gelatin from setting; commercially pasteurized pineapple juice is generally more suitable.
The principle: Heat is a tool, not a goal. Apply only as much heat as the ingredients require.