Archived
1
Fork 0
This repository has been archived on 2025-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
libxiv/include/havokxmlparser.h

27 lines
530 B
C
Raw Normal View History

#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);