@@ -849,38 +849,38 @@ float AtomGroup::Travel(Vector &position,
849
849
bool callOnSink,
850
850
bool scenePreLocked)
851
851
{
852
- // Establish the travel trajectory of the origin of the AG during the time frame
852
+ // Establish the travel trajectory of the origin of the AG during the time frame
853
853
854
- // SEGMENT LOOP //////////////////////////////////////////////
855
- // loop through all segments between hits
854
+ // SEGMENT LOOP //////////////////////////////////////////////
855
+ // loop through all segments between hits
856
856
857
- // Loop through the atoms
857
+ // Loop through the atoms
858
+
859
+ // Establish each atom's added trajectory based on its offset and the MO's angular vel
858
860
859
- // Establish each atom's added trajectory based on its offset and the MO's angular vel
861
+ // Add the origin traj and added offset rotation traj for each atom, to get its total trajectory
860
862
861
- // Add the origin traj and added offset rotation traj for each atom, to get its total trajectory
863
+ // Reset the Atoms and init them for a new straight segment, using the calculated traj. As a first step of segment,
864
+ // make the start step for all atoms, the atoms themselves should check if they are already on another MO,
865
+ // and if so, to remember to ignore that MO for the rest of this AG's travel.
862
866
863
- // Reset the Atoms and init them for a new straight segment, using the calculated traj. As a first step of segment,
864
- // make the start step for all atoms, the atoms themselves should check if they are already on another MO,
865
- // and if so, to remember to ignore that MO for the rest of this AG's travel .
867
+ // Find out which atom's total individual trajectory is the longest of them all, meaning its velocity is the
868
+ // greatest of all atoms in this group during this travel. Calculate and store that max velocity also
869
+ // highestVel = ((longestTraj / PPM) / traveltime) .
866
870
867
- // Find out which atom's total individual trajectory is the longest of them all, meaning its velocity is the
868
- // greatest of all atoms in this group during this travel. Calculate and store that max velocity also
869
- // highestVel = ((longestTraj / PPM) / traveltime).
871
+ // Loop through the atoms again
870
872
871
- // Loop through the atoms again
873
+ // Calc and save the normalized velocity ratio of all atoms by dividing their traj length with the longest.
874
+ // The fastest atom(s) thus gets a ratio of 1.0, and all others get something 1.0 > x >= 0.0
872
875
873
- // Calc and save the normalized velocity ratio of all atoms by dividing their traj length with the longest.
874
- // The fastest atom(s) thus gets a ratio of 1.0, and all others get something 1.0 > x >= 0.0
876
+ // Somehow save each step ratio associated with its corresponding atom
875
877
876
- // Somehow save each step ratio associated with its corresponding atom
878
+ // STEP LOOP //////////////////////////////////////////////
879
+ // Loop through all the steps that the longest atom traj has to take this AG travel
877
880
878
- // STEP LOOP //////////////////////////////////////////////
879
- // Loop through all the steps that the longest atom traj has to take this AG travel
881
+ // Loop through atoms
880
882
881
- // Loop through atoms
882
-
883
- // All atoms whose (progress += velRatio) >= std::ceil(prevProgress), take a step to their
883
+ // All atoms whose (progress += velRatio) >= std::ceil(prevProgress), take a step to their
884
884
// next pixel locations and check for collisions. all others do nothing.
885
885
886
886
// If any collision, add atom to approprite collision list (MO or terrain), and if MO, to
0 commit comments