rodecomp/Source/Contents/Models/ModelAnimation.h
ragnarok-clanker dd95a31022 Decompile 3 functions in Source/Contents/Models/ModelAnimation.cpp, Source/Contents/Models/ModelAnimation.h, ...
Batch #12238 by Yommy: 0 byte-identical, 3 confirmed by peer review.

- fn_01721 SampleLegacyPosition: logic confirmed by peer review
- fn_01722 SampleModelPosition: logic confirmed by peer review
- fn_01723 SampleLegacyRotation: logic confirmed by peer review

Peer-reviewed-by: KWDev, Toshiro, cremane
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-05 12:29:45 +00:00

18 lines
1 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_MODELS_MODELANIMATION_H
#define RAGNAROK_SOURCE_CONTENTS_MODELS_MODELANIMATION_H
#include "Resource/Models/ModelResource.h"
#include "Utility/Math/AffineMatrix.h"
#include <vector>
void SampleLegacyPosition(const std::vector<ModelPositionKey>& keys, int frame, matrix& output);
void SampleLegacyRotation(const std::vector<ModelRotationKey>& keys, int frame, matrix& output);
void SampleLegacyScale(const std::vector<ModelScaleKey>& keys, int frame, matrix& output);
void SampleModelScale(const std::vector<ModelRotationKey>& keys, float frame, matrix& output);
void SampleModelPosition(const std::vector<ModelRotationKey>& keys, float frame, const matrix& base, matrix& output);
void SampleModelRotation(const std::vector<ModelRotationKey>& keys, float frame, const matrix& base, matrix& output);
void QuaternionMatrix(const ModelRotationKey& key, matrix& output);
void InterpolateModelRotation(float amount, const ModelRotationKey& first, const ModelRotationKey& second, int spins, ModelRotationKey& output);
#endif