group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HitboxRig Struct Reference

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< HitboxDefdefinitions

Detailed Description

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.

Member Function Documentation

◆ buildMixamoDefault()

HitboxRig HitboxRig::buildMixamoDefault ( )
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).

Here is the caller graph for this function:

◆ resolveIndices()

void HitboxRig::resolveIndices ( const std::unordered_map< std::string, int > & jointMap)
inline

Resolve bone names to runtime joint indices.

Parameters
jointMapBone name -> index mapping from CharacterRig::jointMap().

Member Data Documentation

◆ definitions

std::vector<HitboxDef> HitboxRig::definitions

The documentation for this struct was generated from the following file: