|
group2 0.1.0
CSE 125 Group 2
|
Authored per-weapon third-person hold pose (FK weapon-hold rewrite). More...
#include "ecs/components/GripPose.hpp"#include <array>#include <cstddef>#include <glm/glm.hpp>#include <glm/gtc/quaternion.hpp>#include <string>Go to the source code of this file.
Classes | |
| struct | ArmHoldPose |
| One arm's authored 3-DOF FK pose. More... | |
| struct | WeaponHoldPose |
| Authored per-weapon third-person hold pose (see file header). More... | |
Functions | |
| bool | loadWeaponHoldPose (const std::string &path, WeaponHoldPose &out) |
| Load a hold pose from a TOML side-table (see WeaponHoldPose.cpp for the schema). | |
| bool | saveWeaponHoldPose (const std::string &path, const WeaponHoldPose &pose) |
| Save a hold pose to a TOML file (atomic temp-write + rename). | |
Variables | |
| constexpr std::size_t | kArmHoldBoneCount = 4 |
| Number of arm-chain bones the FK hold pose drives, ordered root → tip. | |
| constexpr std::array< const char *, kArmHoldBoneCount > | kArmHoldBoneSuffixes |
| Mixamo bone-name suffixes for the arm chain (prefixed with mixamorig:<Side> at runtime), ordered root → tip. | |
| constexpr std::array< const char *, kArmHoldBoneCount > | kArmHoldBoneDisplayNames |
| Human-readable labels for the arm-chain bones (tweaker UI). | |
Authored per-weapon third-person hold pose (FK weapon-hold rewrite).
Replaces the old analytical two-bone arm IK + Spine2 hold-anchor system. The new model is dead simple and fully artist-/debug-tunable:
Three rotation DOF per bone — pitch about local Z, yaw about local Y, roll (twist) about local X — give full control for accurate hand placement.
| bool loadWeaponHoldPose | ( | const std::string & | path, |
| WeaponHoldPose & | out ) |
Load a hold pose from a TOML side-table (see WeaponHoldPose.cpp for the schema).
Missing sections keep their default (zeroed) values; returns false only when the file cannot be parsed at all.
| bool saveWeaponHoldPose | ( | const std::string & | path, |
| const WeaponHoldPose & | pose ) |
Save a hold pose to a TOML file (atomic temp-write + rename).
Returns false on filesystem failure.
|
inlineconstexpr |
Number of arm-chain bones the FK hold pose drives, ordered root → tip.
|
inlineconstexpr |
Human-readable labels for the arm-chain bones (tweaker UI).
|
inlineconstexpr |
Mixamo bone-name suffixes for the arm chain (prefixed with mixamorig:<Side> at runtime), ordered root → tip.