blob: 5fb6949e54c8fac811177ee20680d5c601653787 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#pragma once
class AnimationClip;
#include "Runtime/Math/AnimationCurve.h"
// Rotation error is defined as maximum angle deviation allowed in degrees
// For others it is defined as maximum distance/delta deviation allowed in percents
void ReduceKeyframes (AnimationClip& clip, float rotationError, float positionError, float scaleError, float floatError);
void EulerToQuaternionCurveBake (const AnimationCurve& curveX, const AnimationCurve& curveY, const AnimationCurve& curveZ, AnimationCurveQuat& collapsed, float sampleRate);
|