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
Joshua Goins 68ecdca929 Add very experimental skeleton loading
Added functions to extract Havok pak files, and extract some skeleton
data from an externally processed Havok XML file. This still requires
you to use the proprietary Havok SDK though, but I'll think of a
solution in the future.
2022-04-12 23:27:21 -04:00

27 lines
No EOL
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);