mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 04:27:42 +00:00
Tons of animation bug fixes
This commit is contained in:
@@ -7,13 +7,21 @@
|
||||
|
||||
namespace urde
|
||||
{
|
||||
class CCharLayoutInfo;
|
||||
|
||||
class CPoseAsTransforms
|
||||
{
|
||||
public:
|
||||
struct Transform
|
||||
{
|
||||
zeus::CTransform m_originToAccum;
|
||||
zeus::CTransform m_restPoseToAccum;
|
||||
};
|
||||
private:
|
||||
CSegId x0_nextId = 0;
|
||||
CSegId x1_count;
|
||||
std::pair<CSegId, CSegId> x8_links[100];
|
||||
std::unique_ptr<zeus::CTransform[]> xd0_transformArr;
|
||||
std::unique_ptr<Transform[]> xd0_transformArr;
|
||||
CSegId xd4_lastInserted = 0;
|
||||
public:
|
||||
CPoseAsTransforms(u8 boneCount);
|
||||
@@ -21,9 +29,13 @@ public:
|
||||
void Clear();
|
||||
void AccumulateScaledTransform(const CSegId& id, zeus::CMatrix3f& rotation, float scale) const;
|
||||
const zeus::CTransform& GetTransform(const CSegId& id) const;
|
||||
const zeus::CTransform& GetRestToAccumTransform(const CSegId& id) const;
|
||||
const zeus::CVector3f& GetOffset(const CSegId& id) const;
|
||||
const zeus::CMatrix3f& GetRotation(const CSegId& id) const;
|
||||
void Insert(const CSegId& id, const zeus::CMatrix3f& rotation, const zeus::CVector3f& offset);
|
||||
void Insert(const CSegId& id,
|
||||
const zeus::CMatrix3f& rotation,
|
||||
const zeus::CVector3f& offset,
|
||||
const zeus::CVector3f& restOffset);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user