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

Commit 8da3b10

Browse files
committed
Rename method
1 parent e38703a commit 8da3b10

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Entities/AtomGroup.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ namespace RTE {
195195

196196
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
197197

198-
Vector AtomGroup::GetAtomPos(const Atom *atom) const {
198+
Vector AtomGroup::GetAdjustedAtomOffset(const Atom *atom) const {
199199
return atom->GetOffset().GetXFlipped(m_OwnerMOSR->m_HFlipped) * m_OwnerMOSR->GetRotMatrix();
200200
}
201201

@@ -1243,7 +1243,7 @@ namespace RTE {
12431243
Vector atomPos;
12441244

12451245
for (const Atom *atom : m_Atoms) {
1246-
atomPos = m_OwnerMOSR->GetPos() + GetAtomPos(atom);
1246+
atomPos = m_OwnerMOSR->GetPos() + GetAdjustedAtomOffset(atom);
12471247
if (g_SceneMan.GetTerrMatter(atomPos.GetFloorIntX(), atomPos.GetFloorIntY()) != g_MaterialAir) {
12481248
penetrates = true;
12491249
break;
@@ -1272,7 +1272,7 @@ namespace RTE {
12721272
int inTerrain = 0;
12731273

12741274
for (const Atom *atom : m_Atoms) {
1275-
atomPos = m_OwnerMOSR->GetPos() + GetAtomPos(atom);
1275+
atomPos = m_OwnerMOSR->GetPos() + GetAdjustedAtomOffset(atom);
12761276
if (g_SceneMan.GetTerrMatter(atomPos.GetFloorIntX(), atomPos.GetFloorIntY()) != g_MaterialAir) { inTerrain++; }
12771277
}
12781278

@@ -1511,9 +1511,9 @@ namespace RTE {
15111511

15121512
for (const Atom *atom : m_Atoms) {
15131513
if (!useLimbPos) {
1514-
atomPos = m_OwnerMOSR->GetPos() + GetAtomPos(atom);
1514+
atomPos = m_OwnerMOSR->GetPos() + GetAdjustedAtomOffset(atom);
15151515
} else {
1516-
atomPos = m_LimbPos + GetAtomPos(atom);
1516+
atomPos = m_LimbPos + GetAdjustedAtomOffset(atom);
15171517
}
15181518
if (!atom->GetNormal().IsZero()) {
15191519
normal = atom->GetNormal().GetXFlipped(m_OwnerMOSR->m_HFlipped) * 5;

Entities/AtomGroup.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ namespace RTE {
149149
int GetDepth() const { return m_Depth; }
150150

151151
/// <summary>
152-
/// Gets the position of an Atom in this AtomGroup adjusted to the Owner MOSRotating horizontal flip and rotation.
152+
/// Gets the offset of an Atom in this AtomGroup adjusted to the Owner MOSRotating horizontal flip and rotation.
153153
/// </summary>
154-
/// <param name="atom">The individual Atom to get the position for.</param>
155-
/// <returns>The position of an Atom in this AtomGroup adjusted to the Owner MOSRotating horizontal flip and rotation.</returns>
156-
Vector GetAtomPos(const Atom *atom) const;
154+
/// <param name="atom">The individual Atom to get the offset for.</param>
155+
/// <returns>The offset of an Atom in this AtomGroup adjusted to the Owner MOSRotating horizontal flip and rotation.</returns>
156+
Vector GetAdjustedAtomOffset(const Atom *atom) const;
157157

158158
/// <summary>
159159
/// Gets the current position of this AtomGroup as a limb.

0 commit comments

Comments
 (0)