MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SetPosition

Method SetPosition

TombEngine/Game/Hud/DrawItems/DisplayItem.cpp:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 void DisplayItem::SetPosition(const Vector3& pos, bool disableInterpolation)
144 {
145 constexpr auto DELTA_TOLERANCE = 100.0f;
146
147 if (!_wasInterpolated || disableInterpolation || Vector3::Distance(pos, _position) > DELTA_TOLERANCE)
148 _prevPosition = pos;
149
150 _position = pos;
151 }
152
153 void DisplayItem::SetOrientation(const EulerAngles& orient, bool disableInterpolation)
154 {

Callers 2

ParseLuaFunction · 0.45
SetupInterpolationFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected