Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 7a74292

Browse files
committed
Reset formatting of untouched comments
1 parent e8a43e3 commit 7a74292

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

Entities/AtomGroup.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -849,38 +849,38 @@ float AtomGroup::Travel(Vector &position,
849849
bool callOnSink,
850850
bool scenePreLocked)
851851
{
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
853853

854-
// SEGMENT LOOP //////////////////////////////////////////////
855-
// loop through all segments between hits
854+
// SEGMENT LOOP //////////////////////////////////////////////
855+
// loop through all segments between hits
856856

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
858860

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
860862

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.
862866

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).
866870

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
870872

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
872875

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
875877

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
877880

878-
// STEP LOOP //////////////////////////////////////////////
879-
// Loop through all the steps that the longest atom traj has to take this AG travel
881+
// Loop through atoms
880882

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
884884
// next pixel locations and check for collisions. all others do nothing.
885885

886886
// If any collision, add atom to approprite collision list (MO or terrain), and if MO, to

0 commit comments

Comments
 (0)