27 lines
530 B
C
27 lines
530 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
#include <array>
|
||
|
|
||
|
struct Bone {
|
||
|
std::string name;
|
||
|
|
||
|
Bone* parent = nullptr;
|
||
|
|
||
|
std::array<float, 16> localTransform, finalTransform;
|
||
|
|
||
|
std::array<float, 3> position;
|
||
|
std::array<float, 4> rotation;
|
||
|
std::array<float, 3> scale;
|
||
|
};
|
||
|
|
||
|
struct Skeleton {
|
||
|
std::vector<Bone> bones;
|
||
|
Bone* root_bone = nullptr;
|
||
|
};
|
||
|
|
||
|
/*
|
||
|
* This reads a havok xml scene file, which is generated from your preferred assetcc.exe.
|
||
|
*/
|
||
|
Skeleton parseHavokXML(const std::string_view path);
|