This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -680,7 +680,7 @@ namespace RTE {
680
680
}
681
681
} while (segRatio != 1 .0F || hitStep && /* !linSegTraj.GetFloored().IsZero() &&*/ !halted);
682
682
683
- ResolveMOSIntersection (position, rotation );
683
+ ResolveMOSIntersection (position);
684
684
685
685
if (!scenePreLocked) { g_SceneMan.UnlockScene (); }
686
686
@@ -1368,7 +1368,7 @@ namespace RTE {
1368
1368
1369
1369
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1370
1370
1371
- bool AtomGroup::ResolveMOSIntersection (Vector &position, Matrix &rotation ) {
1371
+ bool AtomGroup::ResolveMOSIntersection (Vector &position) {
1372
1372
if (!m_OwnerMO->m_HitsMOs ) {
1373
1373
return true ;
1374
1374
}
@@ -1383,8 +1383,7 @@ namespace RTE {
1383
1383
1384
1384
// First go through all Atoms to find the first intersection and get the intersected MO
1385
1385
for (Atom *atom : m_Atoms) {
1386
- atomOffset = atom->GetOffset ().GetXFlipped (m_OwnerMO->IsHFlipped ());
1387
- atomOffset *= rotation;
1386
+ atomOffset = m_OwnerMO->RotateOffset (atom->GetOffset ());
1388
1387
atom->SetupPos (position + atomOffset);
1389
1388
atomPos = atom->GetCurrentPos ();
1390
1389
hitMOID = g_SceneMan.GetMOIDPixel (atomPos.GetFloorIntX (), atomPos.GetFloorIntY ());
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ namespace RTE {
323
323
// / <param name="position">Current position of the owner MO.</param>
324
324
// / <param name="rotation">Current rotation of the owner MO.</param>
325
325
// / <returns>Whether all intersections were successfully resolved.</returns>
326
- bool ResolveMOSIntersection (Vector &position, Matrix &rotation );
326
+ bool ResolveMOSIntersection (Vector &position);
327
327
#pragma endregion
328
328
329
329
#pragma region Debug
You can’t perform that action at this time.
0 commit comments