Decompile 2 functions in Source/Contents/Models/ModelQuaternion.cpp, Source/Contents/Models/ModelAnimation.cpp, ...
Batch #18181 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_01736 ModelRotationKey::Interpolate: logic confirmed by peer review - fn_01723 LegacyRotationTrack::Sample: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
a39257b59e
commit
482ba39f54
4 changed files with 9 additions and 8 deletions
|
|
@ -92,10 +92,10 @@ void LegacyRotationTrack::Sample(int frame, matrix& output) const {
|
|||
ModelRotationKey result;
|
||||
|
||||
if (next == 0) {
|
||||
InterpolateModelRotation(0.0f, keys[0], keys[1], 0, result);
|
||||
result.Interpolate(0.0f, keys[0], keys[1], 0);
|
||||
} else {
|
||||
const float amount = static_cast<float>((frame - a.frame)) / static_cast<float>((b.frame - a.frame));
|
||||
InterpolateModelRotation(amount, a, b, 0, result);
|
||||
result.Interpolate(amount, a, b, 0);
|
||||
}
|
||||
|
||||
QuaternionMatrix(result, output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue