16#include <nlohmann/json.hpp>
36 const fx::gltf::Node& node,
37 const nlohmann::json& extension);
76 const fx::gltf::Document& model);
bool isHierarchyNode(const fx::gltf::Node &node)
Check if a node is allowed in the skeleton hierarchy.
std::tuple< std::string, JointList, CollisionGeometry_u, LocatorList, PhysicalProperties, std::vector< size_t > > loadHierarchy(const fx::gltf::Document &model)
Load the hierarchy from the model.
Joint createJoint(const fx::gltf::Node &node)
Create a joint from a glTF node.
JointListT< float > JointList
CollisionEllipsoidT< float > CollisionEllipsoid
CollisionBox createCollisionBox(const fx::gltf::Node &node, const nlohmann::json &extension)
Create a collision box from a glTF node.
JointList createSkeletonWithOnlyRoot()
Create a skeleton with only a root joint.
Locator createLocator(const fx::gltf::Node &node, const nlohmann::json &extension)
Create a locator from a glTF node.
CollisionEllipsoid createCollisionEllipsoid(const fx::gltf::Node &node, const nlohmann::json &extension)
Create a collision ellipsoid from a glTF node.
TaperedCapsule createCollisionCapsule(const fx::gltf::Node &node, const nlohmann::json &extension)
Create a collision capsule from a glTF node.
std::vector< JointPhysicalProperties > PhysicalProperties
Optional physical mass properties for a character.
CollisionBoxT< float > CollisionBox
std::vector< std::vector< uint32_t > > gatherSkeletonRoots(const fx::gltf::Document &model)
Gather skeleton roots from the glTF model.
TaperedCapsuleT< float > TaperedCapsule
std::vector< Locator > LocatorList
A collection of locators attached to a skeleton.
Represents a point attached to a joint in a skeleton.