// before platforms are about to be spawned setup the section data to ensure the correct platforms are spawned
 private void setupSection(ObjectLocation location, bool isSceneObject)
 {
     if (sectionSelection.useSectionTransitions)
     {
         int prevSection = sectionSelection.getActiveSection(isSceneObject);
         spawnData.section = sectionSelection.getSection(infiniteObjectHistory.getTotalDistance(isSceneObject), isSceneObject);
         if (spawnData.section != prevSection)
         {
             infiniteObjectHistory.setPreviousSection(prevSection, isSceneObject);
         }
         if (spawnData.section != infiniteObjectHistory.getPreviousSection() && !infiniteObjectHistory.hasSpawnedSectionTransition(location, isSceneObject))
         {
             spawnData.sectionTransition = true;
             spawnData.prevSection       = infiniteObjectHistory.getPreviousSection();
         }
         else
         {
             spawnData.sectionTransition = false;
         }
     }
 }