@@ -195,7 +195,7 @@ namespace RTE {
195
195
196
196
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
197
197
198
- Vector AtomGroup::GetAtomPos (const Atom *atom) const {
198
+ Vector AtomGroup::GetAdjustedAtomOffset (const Atom *atom) const {
199
199
return atom->GetOffset ().GetXFlipped (m_OwnerMOSR->m_HFlipped ) * m_OwnerMOSR->GetRotMatrix ();
200
200
}
201
201
@@ -1243,7 +1243,7 @@ namespace RTE {
1243
1243
Vector atomPos;
1244
1244
1245
1245
for (const Atom *atom : m_Atoms) {
1246
- atomPos = m_OwnerMOSR->GetPos () + GetAtomPos (atom);
1246
+ atomPos = m_OwnerMOSR->GetPos () + GetAdjustedAtomOffset (atom);
1247
1247
if (g_SceneMan.GetTerrMatter (atomPos.GetFloorIntX (), atomPos.GetFloorIntY ()) != g_MaterialAir) {
1248
1248
penetrates = true ;
1249
1249
break ;
@@ -1272,7 +1272,7 @@ namespace RTE {
1272
1272
int inTerrain = 0 ;
1273
1273
1274
1274
for (const Atom *atom : m_Atoms) {
1275
- atomPos = m_OwnerMOSR->GetPos () + GetAtomPos (atom);
1275
+ atomPos = m_OwnerMOSR->GetPos () + GetAdjustedAtomOffset (atom);
1276
1276
if (g_SceneMan.GetTerrMatter (atomPos.GetFloorIntX (), atomPos.GetFloorIntY ()) != g_MaterialAir) { inTerrain++; }
1277
1277
}
1278
1278
@@ -1511,9 +1511,9 @@ namespace RTE {
1511
1511
1512
1512
for (const Atom *atom : m_Atoms) {
1513
1513
if (!useLimbPos) {
1514
- atomPos = m_OwnerMOSR->GetPos () + GetAtomPos (atom);
1514
+ atomPos = m_OwnerMOSR->GetPos () + GetAdjustedAtomOffset (atom);
1515
1515
} else {
1516
- atomPos = m_LimbPos + GetAtomPos (atom);
1516
+ atomPos = m_LimbPos + GetAdjustedAtomOffset (atom);
1517
1517
}
1518
1518
if (!atom->GetNormal ().IsZero ()) {
1519
1519
normal = atom->GetNormal ().GetXFlipped (m_OwnerMOSR->m_HFlipped ) * 5 ;
0 commit comments