mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fix animation delta repeating when getting delta of the same frame
This fixes actors moving too much and strangely
This commit is contained in:
parent
194e898d90
commit
a150c1b18b
1 changed files with 3 additions and 1 deletions
|
@ -121,7 +121,9 @@ SkelVec3 skelAnimDataGameHeader_s::GetDeltaOverTime(float time1, float time2)
|
|||
delta.z += m_frame[frameNum2 % numFrames].delta.z * s;
|
||||
} else {
|
||||
s = s - (1.0 - d);
|
||||
delta = m_frame[frameNum2 % numFrames].delta;
|
||||
delta.x = m_frame[frameNum2 % numFrames].delta.x * s;
|
||||
delta.y = m_frame[frameNum2 % numFrames].delta.y * s;
|
||||
delta.z = m_frame[frameNum2 % numFrames].delta.z * s;
|
||||
}
|
||||
|
||||
if (delta.x > -0.001f && delta.x < 0.001f) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue