This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -1192,17 +1192,10 @@ float AtomGroup::Travel(Vector &position,
1192
1192
// Special case of being at rest
1193
1193
if (stepCount == 0 && stepsOnSeg == 1 )
1194
1194
{
1195
- segProgress = 0 .0F ;
1196
1195
halted = true ;
1197
1196
// m_pOwnerMO->SetToSettle(true);
1198
- }
1199
- // Normal travel
1200
- else if (stepCount == 0 ) {
1201
- // Hit on first atom, but has farther to go
1202
- segProgress = 0 .75F / static_cast <float >(stepsOnSeg);
1203
- } else {
1204
- segProgress = static_cast <float >(stepCount) / static_cast <float >(stepsOnSeg);
1205
1197
}
1198
+ segProgress = static_cast <float >(stepCount) / static_cast <float >(stepsOnSeg);
1206
1199
1207
1200
// Move position forward to the hit position.
1208
1201
preHitPos = position;
@@ -1298,8 +1291,6 @@ float AtomGroup::Travel(Vector &position,
1298
1291
// Calc and store the collision response effects.
1299
1292
for (Atom *penetratingAtom : penetratingAtoms)
1300
1293
{
1301
-
1302
-
1303
1294
// This gets re-set later according to the ortho pixel edges hit.
1304
1295
// hitData.BitmapNormal = -(hitData.HitVel[HITOR].GetNormalized());
1305
1296
// hitData.SquaredMIHandle[HITOR] = hitData.HitRadius[HITOR].GetPerpendicular()/*.Dot(hitData.BitmapNormal)*/;
You can’t perform that action at this time.
0 commit comments