|
group2 0.1.0
CSE 125 Group 2
|
Hitbox rig (shared per character archetype). More...
#include <Hitbox.hpp>
Public Member Functions | |
| void | resolveIndices (const std::unordered_map< std::string, int > &jointMap) |
| Resolve bone names to runtime joint indices. | |
Static Public Member Functions | |
| static HitboxRig | buildMixamoDefault () |
| Build the default Mixamo-rig hitbox definitions (12 capsules). | |
Public Attributes | |
| std::vector< HitboxDef > | definitions |
Hitbox rig (shared per character archetype).
Collection of hitbox definitions for a character rig.
Built once at startup. All entities using the same skeleton share one HitboxRig instance. Call resolveIndices() after loading the skeleton to map bone names to runtime joint indices.
|
inlinestatic |
Build the default Mixamo-rig hitbox definitions (12 capsules).
Capsule dimensions are in the rig's model space (before rigScale is applied). Values are tuned for a standard Mixamo mannequin (~170 cm tall in model space).
|
inline |
Resolve bone names to runtime joint indices.
| jointMap | Bone name -> index mapping from CharacterRig::jointMap(). |
| std::vector<HitboxDef> HitboxRig::definitions |