2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-01-08 03:36:24 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "zeus/CTransform.hpp"
|
|
|
|
#include "zeus/CVector3f.hpp"
|
|
|
|
#include "zeus/CQuaternion.hpp"
|
|
|
|
#include "Character/CSegId.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CAnimData;
|
|
|
|
class CSegId;
|
|
|
|
class CIkChain
|
|
|
|
{
|
|
|
|
CSegId x0_;
|
|
|
|
CSegId x1_;
|
|
|
|
CSegId x2_;
|
2018-11-24 08:09:35 +00:00
|
|
|
zeus::CVector3f x4_ = zeus::CVector3f::skForward;
|
|
|
|
zeus::CVector3f x10_ = zeus::CVector3f::skForward;
|
|
|
|
float x1c_ = 1.f;
|
|
|
|
float x20_ = 1.f;
|
2017-01-08 03:36:24 +00:00
|
|
|
zeus::CQuaternion x24_;
|
|
|
|
zeus::CVector3f x34_;
|
|
|
|
float x40_time = 0.f;
|
|
|
|
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
bool x44_24_activated : 1;
|
|
|
|
};
|
2018-11-24 08:09:35 +00:00
|
|
|
u32 x44_dummy = 0;
|
2017-01-08 03:36:24 +00:00
|
|
|
};
|
|
|
|
public:
|
|
|
|
CIkChain() = default;
|
|
|
|
|
2017-01-15 03:59:37 +00:00
|
|
|
bool GetActive() const { return x44_24_activated; }
|
2017-01-08 03:36:24 +00:00
|
|
|
void Update(float);
|
|
|
|
void Deactivate();
|
|
|
|
void Activate(const CAnimData&, const CSegId&, const zeus::CTransform&);
|
|
|
|
void PreRender(CAnimData&, const zeus::CTransform&, const zeus::CVector3f&);
|
|
|
|
void Solve(zeus::CQuaternion&, zeus::CQuaternion&, const zeus::CVector3f&);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|